]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
client: fix code style
authorVincent Bernat <vincent@bernat.im>
Sat, 23 Jan 2016 16:05:50 +0000 (17:05 +0100)
committerVincent Bernat <vincent@bernat.im>
Sat, 23 Jan 2016 16:05:50 +0000 (17:05 +0100)
src/client/display.c
src/client/writer.h

index 2695a719bc2a279e95cdc79152683f21d079a42c..83525597c0877a705c8ab2417c85f8dda9cb5b55 100644 (file)
@@ -672,7 +672,7 @@ display_stat(struct writer *w, const char *tag, const char *descr,
        char buf[20] = {};
 
        tag_start(w, tag, descr);
-       snprintf(buf, sizeof(buf), "%lu", cnt );
+       snprintf(buf, sizeof(buf), "%lu", cnt);
        tag_attr(w, tag, "", buf);
        tag_end(w);
 }
index c664a14d08ffee150b295c895c6d3ad88c3e1c4c..1a76d94b021e5e837b213db2f253a569a8447350 100644 (file)
@@ -35,17 +35,17 @@ struct writer {
 #define tag_end(w,...)         w->end(w,## __VA_ARGS__)
 #define tag_datatag(w,t,d,v)   do { if ((v) == NULL) break; w->start(w,t,d); w->data(w,v); w->end(w); } while(0);
 
-extern struct writer * txt_init( FILE * );
-extern struct writer * kv_init( FILE * );
+extern struct writer *txt_init(FILE *);
+extern struct writer *kv_init(FILE *);
 
 #ifdef USE_XML
-extern struct writer * xml_init( FILE * );
+extern struct writer *xml_init(FILE *);
 #endif
 #ifdef USE_JANSSON
-extern struct writer * jansson_init( FILE * );
+extern struct writer *jansson_init(FILE *);
 #endif
 #ifdef USE_JSONC
-extern struct writer * jsonc_init( FILE * );
+extern struct writer *jsonc_init(FILE *);
 #endif
 
 #endif /* _WRITER_H */