diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2012-05-11 11:28:49 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2012-05-21 15:50:28 +0200 |
commit | 0a0f5258454a3ba5537248fd067fb4b71bfd38df (patch) | |
tree | 0e09996063212616246000f15d220cc449d467a0 | |
parent | 3e7b9b79a0b3c4e23c8ebd6d6665669a03cf9edd (diff) | |
download | gvfs-0a0f5258454a3ba5537248fd067fb4b71bfd38df.tar.gz |
gdbus: Use proper data type size and casting
-rw-r--r-- | monitor/proxy/gvfsproxyvolumemonitordaemon.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/monitor/proxy/gvfsproxyvolumemonitordaemon.c b/monitor/proxy/gvfsproxyvolumemonitordaemon.c index 253089b3..72029460 100644 --- a/monitor/proxy/gvfsproxyvolumemonitordaemon.c +++ b/monitor/proxy/gvfsproxyvolumemonitordaemon.c @@ -441,7 +441,7 @@ on_name_owner_vanished (GDBusConnection *connection, gpointer user_data) { GList *l; - gulong name_watcher_id; + guint name_watcher_id; print_debug ("Name owner '%s' vanished", name); @@ -482,7 +482,7 @@ on_name_owner_vanished (GDBusConnection *connection, /* unwatch the name */ G_LOCK (unique_names_being_watched_lock); - name_watcher_id = (gulong) g_hash_table_lookup (unique_names_being_watched, name); + name_watcher_id = GPOINTER_TO_UINT (g_hash_table_lookup (unique_names_being_watched, name)); if (name_watcher_id == 0) { g_warning ("Was asked to remove match rule for unique_name %s but we don't have one", name); @@ -499,7 +499,7 @@ on_name_owner_vanished (GDBusConnection *connection, static void ensure_name_owner_changed_for_unique_name (GDBusMethodInvocation *invocation) { - gulong name_watcher_id; + guint name_watcher_id; const gchar *unique_name; unique_name = g_dbus_method_invocation_get_sender (invocation); @@ -515,7 +515,7 @@ ensure_name_owner_changed_for_unique_name (GDBusMethodInvocation *invocation) on_name_owner_vanished, NULL, NULL); - g_hash_table_insert (unique_names_being_watched, g_strdup (unique_name), (gpointer) name_watcher_id); + g_hash_table_insert (unique_names_being_watched, g_strdup (unique_name), GUINT_TO_POINTER (name_watcher_id)); out: G_UNLOCK (unique_names_being_watched_lock); |