From 3c89788fa483ebda858ab66797e2834af94b798f Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Tue, 21 Apr 2009 12:52:22 -0400 Subject: 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 --- test/name-test/test-names.c | 2 +- test/name-test/test-shutdown.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/name-test/test-names.c b/test/name-test/test-names.c index f4b0ba08..b09f3638 100644 --- a/test/name-test/test-names.c +++ b/test/name-test/test-names.c @@ -37,7 +37,7 @@ typedef struct { int expected_queue[NUM_CONN]; } CommandAndResult; -CommandAndResult test_data[] = { +static CommandAndResult test_data[] = { {ADD_CONNECTION, 0, ALLOW_REPLACEMENT | REPLACE_EXISTING, PRIMARY_OWNER, {0,-1,-1,-1}}, {ADD_CONNECTION, 0, REPLACE_EXISTING, diff --git a/test/name-test/test-shutdown.c b/test/name-test/test-shutdown.c index c50ef4b6..e76c1ea2 100644 --- a/test/name-test/test-shutdown.c +++ b/test/name-test/test-shutdown.c @@ -11,7 +11,7 @@ die (const char *message) } static void -open_destroy_shared_session_bus_connection () +open_destroy_shared_session_bus_connection (void) { DBusError error; DBusConnection *connection; -- cgit