Fix function declarations
authorThomas Zimmermann <tdz@users.sourceforge.net>
Fri, 19 Aug 2016 09:23:54 +0000 (11:23 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 10 Oct 2016 14:09:28 +0000 (15:09 +0100)
This patch adds 'void' to function declarations without parameters.

Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net>
[smcv: fix coding style while we're touching these lines anyway]
Reviewed-by: Simon McVittie <smcv@debian.org>
dbus/dbus-sysdeps-win.c
test/manual-paths.c

index 479abff..bd18ddb 100644 (file)
@@ -99,7 +99,7 @@ _dbus_win_set_errno (int err)
 #endif
 }
 
-static BOOL is_winxp_sp3_or_lower();
+static BOOL is_winxp_sp3_or_lower (void);
 
 /*
  * _MIB_TCPROW_EX and friends are not available in system headers
@@ -941,7 +941,8 @@ _dbus_pid_for_log (void)
 
 #ifndef DBUS_WINCE
 
-static BOOL is_winxp_sp3_or_lower()
+static BOOL
+is_winxp_sp3_or_lower (void)
 {
    OSVERSIONINFOEX osvi;
    DWORDLONG dwlConditionMask = 0;
@@ -2550,7 +2551,8 @@ static DWORD WINAPI dump_thread_proc (LPVOID lpParameter)
 
 /* cannot get valid context from current thread, so we have to execute
  * backtrace from another thread */
-static void dump_backtrace ()
+static void
+dump_backtrace (void)
 {
   HANDLE hCurrentThread;
   HANDLE hThread;
index c86ed6b..82fc669 100644 (file)
@@ -12,7 +12,8 @@
 
 #include <stdio.h>
 
-static dbus_bool_t print_install_root()
+static dbus_bool_t
+print_install_root (void)
 {
   DBusString runtime_prefix;
 
@@ -42,7 +43,8 @@ static dbus_bool_t print_install_root()
   return TRUE;
 }
 
-static dbus_bool_t print_service_dirs()
+static dbus_bool_t
+print_service_dirs (void)
 {
   DBusList *dirs;
   DBusList *link;