diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2012-05-07 08:27:28 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-05-07 08:28:04 +0200 |
commit | 4ddd115af8e6247788c78dc3630d37f2f4493e03 (patch) | |
tree | 4f73a046fcbcafb746bfa10e67be1995474602cc /src/output.c | |
parent | 6b447f7f1be3e53129756b51501f469e60820334 (diff) |
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.
Diffstat (limited to 'src/output.c')
-rw-r--r-- | src/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 "</fc>"; 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) |