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 /i3status.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 'i3status.c')
-rw-r--r-- | i3status.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -121,7 +121,7 @@ static char *resolve_tilde(const char *path) { return result; } -static char *get_config_path() { +static char *get_config_path(void) { char *xdg_config_home, *xdg_config_dirs, *config_path; /* 1: check the traditional path under the home directory */ |