From 4fb33a0edd9e38479ee9d29fc937cdf8545b21a8 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Fri, 19 Aug 2016 11:23:54 +0200 Subject: Fix function declarations This patch adds 'void' to function declaraions without parameters. Signed-off-by: Thomas Zimmermann --- dbus/dbus-sysdeps-win.c | 6 +++--- test/manual-paths.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 32b49b8..74bca44 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -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,7 @@ _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 +2550,7 @@ 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; diff --git a/test/manual-paths.c b/test/manual-paths.c index c86ed6b..f043315 100644 --- a/test/manual-paths.c +++ b/test/manual-paths.c @@ -12,7 +12,7 @@ #include -static dbus_bool_t print_install_root() +static dbus_bool_t print_install_root (void) { DBusString runtime_prefix; @@ -42,7 +42,7 @@ 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; -- 2.7.4