From a769e9cbf9a296ab6b253f850b3387ca10398146 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 23 Jan 2016 17:05:50 +0100 Subject: [PATCH] client: fix code style --- src/client/display.c | 2 +- src/client/writer.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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 */ -- 2.39.5