summaryrefslogtreecommitdiff
path: root/test/name-test
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 /test/name-test
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 'test/name-test')
-rw-r--r--test/name-test/test-names.c2
-rw-r--r--test/name-test/test-shutdown.c2
2 files changed, 2 insertions, 2 deletions
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;