From: Vincent Bernat Date: Sat, 23 Jan 2016 16:05:50 +0000 (+0100) Subject: client: fix code style X-Git-Tag: 0.9.1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a769e9cbf9a296ab6b253f850b3387ca10398146;p=thirdparty%2Flldpd.git client: fix code style --- diff --git a/src/client/display.c b/src/client/display.c index 2695a719..83525597 100644 --- a/src/client/display.c +++ b/src/client/display.c @@ -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); } diff --git a/src/client/writer.h b/src/client/writer.h index c664a14d..1a76d94b 100644 --- a/src/client/writer.h +++ b/src/client/writer.h @@ -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 */