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/auto_detect_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/auto_detect_format.c') diff --git a/src/auto_detect_format.c b/src/auto_detect_format.c index 7c4d65d..46e5f95 100644 --- a/src/auto_detect_format.c +++ b/src/auto_detect_format.c @@ -29,7 +29,7 @@ * We then check whether the pipe target’s name is known and chose the format. * */ -char *auto_detect_format() { +char *auto_detect_format(void) { pid_t myppid = getppid(); pid_t mypid = getpid(); -- cgit v1.2.3