summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2009-04-21 12:52:22 -0400
committerColin Walters <walters@verbum.org>2009-04-21 13:10:10 -0400
commit3c89788fa483ebda858ab66797e2834af94b798f (patch)
treedc3d2966b04560366edc10e6245442a1bd7f1ca7 /tools
parent83d7da43c40b913838917ff79d799dba69812b69 (diff)
Bug 19502 - Sparse warning cleanups
This patch makes various things that should be static static, corrects some "return FALSE" where it should be NULL, etc. Signed-off-by: Colin Walters <walters@verbum.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-launch.c2
-rw-r--r--tools/dbus-monitor.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index 139d0aaf..9c47d7e3 100644
--- a/tools/dbus-launch.c
+++ b/tools/dbus-launch.c
@@ -335,7 +335,7 @@ do_waitpid (pid_t pid)
static pid_t bus_pid_to_kill = -1;
static void
-kill_bus()
+kill_bus(void)
{
verbose ("Killing message bus and exiting babysitter\n");
kill (bus_pid_to_kill, SIGTERM);
diff --git a/tools/dbus-monitor.c b/tools/dbus-monitor.c
index ee03d854..cbd7a489 100644
--- a/tools/dbus-monitor.c
+++ b/tools/dbus-monitor.c
@@ -195,7 +195,7 @@ usage (char *name, int ecode)
exit (ecode);
}
-dbus_bool_t sigint_received = FALSE;
+static dbus_bool_t sigint_received = FALSE;
static void
sigint_handler (int signum)