dbus/test test-segfault.c,1.3,1.4 test-utils.c,1.5,1.6

John Palmieri johnp at freedesktop.org
Wed Nov 30 11:32:29 PST 2005


Update of /cvs/dbus/dbus/test
In directory gabe:/tmp/cvs-serv31793/test

Modified Files:
	test-segfault.c test-utils.c 
Log Message:
* 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>) 


Index: test-segfault.c
===================================================================
RCS file: /cvs/dbus/dbus/test/test-segfault.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- test-segfault.c	15 Jun 2003 10:45:06 -0000	1.3
+++ test-segfault.c	30 Nov 2005 19:32:26 -0000	1.4
@@ -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 @@
   
   raise (SIGSEGV);
 
-  p = 0;
+  p = NULL;
   *p = 'a';
   
   return 0;

Index: test-utils.c
===================================================================
RCS file: /cvs/dbus/dbus/test/test-utils.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- test-utils.c	18 Apr 2003 04:18:57 -0000	1.5
+++ test-utils.c	30 Nov 2005 19:32:26 -0000	1.6
@@ -41,8 +41,6 @@
 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);
 }



More information about the dbus-commit mailing list