summaryrefslogtreecommitdiff
path: root/src/bencode.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-11 15:08:03 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-11 15:08:03 +0000
commit763abd8c8fc32b29c5f989cd0d4cab1b6e472997 (patch)
tree4ff54223e8526dbb20e9fe87e9c21d9a3b80975c /src/bencode.h
parent0d08a471f9ebfdfadded6c92abc700c706475644 (diff)
oops, no tabs. (indent -kr -nut)
Diffstat (limited to 'src/bencode.h')
-rw-r--r--src/bencode.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/bencode.h b/src/bencode.h
index 344fc4f..71760e0 100644
--- a/src/bencode.h
+++ b/src/bencode.h
@@ -24,10 +24,10 @@ extern "C" {
#endif
typedef enum {
- BE_STR,
- BE_INT,
- BE_LIST,
- BE_DICT
+ BE_STR,
+ BE_INT,
+ BE_LIST,
+ BE_DICT
} be_type;
struct be_dict;
@@ -38,18 +38,18 @@ extern "C" {
*/
typedef struct be_dict {
- char *key;
- struct be_node *val;
+ char *key;
+ struct be_node *val;
} be_dict;
typedef struct be_node {
- be_type type;
- union {
- char *s;
- gint64 i;
- struct be_node **l;
- struct be_dict *d;
- } val;
+ be_type type;
+ union {
+ char *s;
+ gint64 i;
+ struct be_node **l;
+ struct be_dict *d;
+ } val;
} be_node;
extern gint64 be_str_len(be_node * node);