A patch from o_sukhodolsky to fix a couple warnings like this:

Sat, 02 Jun 2007 04:39:53 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Sat, 02 Jun 2007 04:39:53 +0000
changeset 17516
4a5036965628
parent 17515
d96963b3074e
child 17517
e8b6365e5e30
child 17865
7ec40ff80e03

A patch from o_sukhodolsky to fix a couple warnings like this:

dbus-bindings.c: In function 'purple_status_type_find_with_id_DBUS':
dbus-bindings.c:6801: warning: passing argument 1 of 'purple_dbus_pointer_to_id_error' discards qualifiers from pointer target type

I changed the patch to use gconstpointer instead of const gpointer.

References #1344

libpurple/dbus-bindings.h file | annotate | diff | comparison | revisions
libpurple/dbus-server.c file | annotate | diff | comparison | revisions
--- a/libpurple/dbus-bindings.h	Sat Jun 02 04:36:43 2007 +0000
+++ b/libpurple/dbus-bindings.h	Sat Jun 02 04:39:53 2007 +0000
@@ -35,9 +35,9 @@
 extern "C" {
 #endif
 
-gint purple_dbus_pointer_to_id(gpointer node);
+gint purple_dbus_pointer_to_id(gconstpointer node);
 gpointer purple_dbus_id_to_pointer(gint id, PurpleDBusType *type);
-gint  purple_dbus_pointer_to_id_error(gpointer ptr, DBusError *error);
+gint  purple_dbus_pointer_to_id_error(gconstpointer ptr, DBusError *error);
 gpointer purple_dbus_id_to_pointer_error(gint id, PurpleDBusType *type,
 				       const char *typename, DBusError *error);
 
--- a/libpurple/dbus-server.c	Sat Jun 02 04:36:43 2007 +0000
+++ b/libpurple/dbus-server.c	Sat Jun 02 04:39:53 2007 +0000
@@ -108,7 +108,7 @@
 }
 
 gint
-purple_dbus_pointer_to_id(gpointer node)
+purple_dbus_pointer_to_id(gconstpointer node)
 {
 	gint id = GPOINTER_TO_INT(g_hash_table_lookup(map_node_id, node));
 	if ((id == 0) && (node != NULL))
@@ -138,7 +138,7 @@
 }
 
 gint
-purple_dbus_pointer_to_id_error(gpointer ptr, DBusError *error)
+purple_dbus_pointer_to_id_error(gconstpointer ptr, DBusError *error)
 {
 	gint id = purple_dbus_pointer_to_id(ptr);
 

mercurial