X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-gobject%2Fga-entry-group.c;h=101acbffbea5bb31047dd5b581f81553e24c5978;hb=7a5b2f69af7d36d6cd4153142f125fa011784e03;hp=c4f2e3766f724dc10a6da81a2b7292a55b9af734;hpb=505fd1b5c1dadff46f4b50df76f9ee978351b3dc;p=catta diff --git a/avahi-gobject/ga-entry-group.c b/avahi-gobject/ga-entry-group.c index c4f2e37..101acbf 100644 --- a/avahi-gobject/ga-entry-group.c +++ b/avahi-gobject/ga-entry-group.c @@ -185,7 +185,7 @@ static void _free_service(gpointer data) { static GQuark detail_for_state(AvahiEntryGroupState state) { static struct { - AvahiClientState state; + AvahiEntryGroupState state; const gchar *name; GQuark quark; } states[] = { @@ -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);