Index: ChangeLog
===================================================================
--- ChangeLog	(revisjon 882)
+++ ChangeLog	(arbeidskopi)
@@ -1,3 +1,33 @@
+2007-01-24  Kjartan Maraas  <kmaraas@gnome.org>
+
+	* atk-bridge/bridge.c: (spi_atk_bridge_init_event_type_consts),
+	(atk_bridge_init), (spi_atk_bridge_get_registry),
+	(spi_atk_bridge_exit_func), (spi_atk_bridge_init_base):
+	Fix some compiler warnings and plug a leak. Closes part of
+	bug #375319.
+
+2007-01-24  Kjartan Maraas  <kmaraas@gnome.org>
+
+	* cspi/bonobo/cspi-bonobo-listener.h:
+	* cspi/bonobo/cspi-bonobo.c: (cspi_init):
+	* cspi/spi_hypertext.c: (AccessibleHypertext_getLink):
+	* cspi/spi_main.c: (SPI_eventIsReady):
+	* cspi/spi_streamablecontent.c: (AccessibleStreamableContent_read):
+	* libspi/streamablecontent.c:
+	* libspi/util.c: (spi_re_entrant_list_delete_link):
+	* login-helper/login-helper.c:
+	* registryd/deviceeventcontroller.c:
+	(spi_controller_update_key_grabs), (isEvent):
+	* registryd/registry.c:
+	* test/key-listener-test.c: (simple_at_exit):
+	* test/login-helper-server-test.c: (test_set_wm_dock),
+	(test_post_window):
+	Fix a bunch of warnings from sparse:
+	- ANSIfication of function declarations
+	- NULL vs 0
+	- Add some prototypes
+	- make some stuff static
+
 2007-01-22  Li Yuan  <li.yuan@sun.com>
 
 	* configure.in, NEWS: Uprev/release 1.7.16 for gnome 2.18.0 Beta 1.
Index: atk-bridge/bridge.c
===================================================================
--- atk-bridge/bridge.c	(revisjon 881)
+++ atk-bridge/bridge.c	(arbeidskopi)
@@ -104,6 +104,7 @@ static void     spi_atk_bridge_init_stri
 static void     spi_atk_bridge_init_rect               (CORBA_any *any, 
 							AtkObject *obj, 
 							AtkRectangle *rect);
+int gtk_module_init (gint *argc, gchar **argv[]);
 
 static gboolean
 spi_atk_bridge_window_event_listener (GSignalInvocationHint *signal_hint,
@@ -148,7 +149,7 @@ extern void gnome_accessibility_module_i
 extern void gnome_accessibility_module_shutdown (void);
 
 static void
-spi_atk_bridge_init_event_type_consts ()
+spi_atk_bridge_init_event_type_consts (void)
 {
   static gboolean done = FALSE;
 
@@ -185,7 +186,7 @@ atk_bridge_init (gint *argc, gchar **arg
   atk_bridge_initialized = TRUE;
   atk_bridge_pid = getpid ();
 
-  misc = atk_misc_get_instance();
+  misc = (AtkMisc *)atk_misc_get_instance();
 
   if (g_getenv ("ATK_BRIDGE_REDIRECT_LOG"))
   {
@@ -399,10 +400,11 @@ spi_atk_bridge_get_registry (void)
 	  /* XXX: This presumes that the registry has successfully restarted itself already...*/
 	  ior = (char *) spi_atk_bridge_get_registry_ior ();
 
-	  if (ior != NULL)
+	  if (ior != NULL) {
 	       registry = CORBA_ORB_string_to_object (bonobo_activation_orb_get (), 
 						      ior, &ev);
-	  else {
+	       g_free (ior);
+	  } else {
 	       g_warning ("IOR not set.");  
 	       registry = CORBA_OBJECT_NIL;
 	  }
@@ -600,7 +602,7 @@ spi_atk_bridge_exit_func (void)
   if (!bonobo_is_initialized ())
     {
       DBG (1, g_warning ("Re-initializing bonobo\n"));
-      g_assert (bonobo_init (0, NULL));
+      g_assert (bonobo_init (NULL, NULL));
       g_assert (bonobo_activate ());
     }
   
@@ -1300,7 +1302,7 @@ spi_atk_bridge_init_base (CORBA_any *any
     const gchar *s = atk_object_get_name (obj);
     *app = spi_accessible_new_return (atk_get_root (), FALSE, NULL);
     *role = spi_role_from_atk_role (atk_object_get_role (obj));
-    *name = s ? s : ""; /* string gets dup-ed in util.c spi_init_any_* */
+    *name = (CORBA_string)s ? (CORBA_string)s : ""; /* string gets dup-ed in util.c spi_init_any_* */
 }
 
 static void     
