summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2005-11-30 19:32:27 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2005-11-30 19:32:27 +0000
commit0ca96ec548a6e4a1e39429f3c0480adfe7e2eab8 (patch)
tree90cf95cc76cdd8e3242eb94e9ae7703b8fbd829d /test
parent111118fd8a9240440ec0e4b9710bebf91e186881 (diff)
* dbus/dbus-auth.c, dbus/dbus-connection.c, dbus/dbus-keyring.c,
dbus/dbus-server-debug-pipe.c, glib/dbus-binding-tool-glib.c glib/dbus-glib-tool.c, glib/dbus-gparser.c, glib/dbus-gproxy.c test/test-segfault.c, test/test-utils.c, test/glib/test-dbus-glib.c, tools/dbus-cleanup-sockets.c tools/dbus-launch.c, tools/dbus-tree-view.c, tools/dbus-viewer.c: Various cleanup of dead code and compiler warnings (patch from Kjartan Maraas <kmaraas at gnome.org>)
Diffstat (limited to 'test')
-rw-r--r--test/glib/test-dbus-glib.c2
-rw-r--r--test/test-segfault.c3
-rw-r--r--test/test-utils.c2
3 files changed, 2 insertions, 5 deletions
diff --git a/test/glib/test-dbus-glib.c b/test/glib/test-dbus-glib.c
index 86c9f7ec..03a1a736 100644
--- a/test/glib/test-dbus-glib.c
+++ b/test/glib/test-dbus-glib.c
@@ -216,13 +216,11 @@ increment_received_cb (DBusGProxy *proxy,
gpointer data)
{
GError *error;
- char *echo_data;
guint val;
g_assert (!strcmp (data, "moo"));
error = NULL;
- echo_data = NULL;
if (!dbus_g_proxy_end_call (proxy, call, &error,
G_TYPE_UINT, &val,
G_TYPE_INVALID))
diff --git a/test/test-segfault.c b/test/test-segfault.c
index 94b42749..6a99131e 100644
--- a/test/test-segfault.c
+++ b/test/test-segfault.c
@@ -1,4 +1,5 @@
/* This is simply a process that segfaults */
+#include <stdlib.h>
#include <signal.h>
#include <sys/time.h>
@@ -17,7 +18,7 @@ main (int argc, char **argv)
raise (SIGSEGV);
- p = 0;
+ p = NULL;
*p = 'a';
return 0;
diff --git a/test/test-utils.c b/test/test-utils.c
index 5e367d4d..9665eda3 100644
--- a/test/test-utils.c
+++ b/test/test-utils.c
@@ -41,8 +41,6 @@ static void
connection_timeout_callback (DBusTimeout *timeout,
void *data)
{
- CData *cd = data;
-
/* Can return FALSE on OOM but we just let it fire again later */
dbus_timeout_handle (timeout);
}