From 4ddd115af8e6247788c78dc3630d37f2f4493e03 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 7 May 2012 08:27:28 +0200 Subject: Use (void) instead of () for functions without args (Thanks fernandotcl) See also: http://article.gmane.org/gmane.linux.kernel/1268792 The C compiler will handle (void) as "no arguments" and () as "variadic function" (equivalent to (...)) which might lead to subtle errors. --- src/output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/output.c') diff --git a/src/output.c b/src/output.c index c0c1480..c4a2d27 100644 --- a/src/output.c +++ b/src/output.c @@ -32,13 +32,13 @@ char *color(const char *colorstr) { * Some color formats (xmobar) require to terminate colors again * */ -char *endcolor() { +char *endcolor(void) { if (output_format == O_XMOBAR) return ""; else return ""; } -void print_seperator() { +void print_seperator(void) { if (output_format == O_DZEN2) printf("^fg(%s)^p(5;-2)^ro(2)^p()^fg()^p(5)", cfg_getstr(cfg_general, "color_separator")); else if (output_format == O_XMOBAR) -- cgit v1.2.3