summaryrefslogtreecommitdiff
path: root/src/bencode.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-25 11:59:32 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2012-01-25 11:59:32 +0000
commit5563da141e1fd0474f1eeedb967209c55227abae (patch)
tree79edb6566aecd22050117f9728b17e40156fd093 /src/bencode.c
parent4d57ef2197461c450aaaf79cdbb31b256ae0e81e (diff)
issue 175. make some (incomplete) changes as per the GTK+ best practices document - mainly using a pointer in the public class to access the private object (on a few important classes for now) for performance, and don't use C99 (C99 comments or mixed declarations/statements).
Diffstat (limited to 'src/bencode.c')
-rw-r--r--src/bencode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bencode.c b/src/bencode.c
index b6d64af..f060cbe 100644
--- a/src/bencode.c
+++ b/src/bencode.c
@@ -204,7 +204,8 @@ void be_free(be_node * node)
case BE_INT:
break;
- case BE_LIST:{
+ case BE_LIST:
+ {
unsigned int i;
if (node->val.l) {
for (i = 0; node->val.l[i]; ++i)
@@ -214,7 +215,8 @@ void be_free(be_node * node)
break;
}
- case BE_DICT:{
+ case BE_DICT:
+ {
unsigned int i;
for (i = 0; node->val.d[i].val; ++i) {
_be_free_str(node->val.d[i].key);