]> git.meshlink.io Git - catta/blobdiff - avahi-gobject/ga-entry-group.c
i18n: make avahi-discover translatable.
[catta] / avahi-gobject / ga-entry-group.c
index c4f2e3766f724dc10a6da81a2b7292a55b9af734..23e8ec3c8e28db43db10a2c7936ddffcaf31902f 100644 (file)
@@ -558,7 +558,7 @@ gboolean ga_entry_group_service_remove_key(GaEntryGroupService * service,
     GaEntryGroupServicePrivate *priv = (GaEntryGroupServicePrivate *) service;
     GaEntryGroupServiceEntry entry;
 
-    entry.value = key;
+    entry.value = (void*) key;
     entry.size = strlen(key);
 
     g_hash_table_remove(priv->entries, &entry);
@@ -574,6 +574,7 @@ gboolean ga_entry_group_attach(GaEntryGroup * group,
                       GaClient * client, GError ** error) {
     GaEntryGroupPrivate *priv = GA_ENTRY_GROUP_GET_PRIVATE(group);
 
+    g_return_val_if_fail(client->avahi_client, FALSE);
     g_assert(priv->client == NULL || priv->client == client);
     g_assert(priv->group == NULL);