summaryrefslogtreecommitdiff
path: root/src/bencode.h
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-11 15:06:01 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-12-11 15:06:01 +0000
commit0d08a471f9ebfdfadded6c92abc700c706475644 (patch)
tree2c49e445ccca81f5af70244e89a15585757798d6 /src/bencode.h
parent24195d0013f81933578afa14a44a10e4b75817dd (diff)
run GNU indent everything. not done this for a while because it was producing weird results. seems ok now.
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 71760e0..344fc4f 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);