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. --- i3status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i3status.c') diff --git a/i3status.c b/i3status.c index 3c5e3ce..15c58da 100644 --- a/i3status.c +++ b/i3status.c @@ -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 */ -- cgit v1.2.3