From: Lennart Poettering Date: Tue, 13 Jul 2010 03:42:52 +0000 (+0200) Subject: gcc: minor enum issues gcc 4.5 discovered X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=2462c966a241720518f612a62a56f55bb8e4b1d6;p=catta gcc: minor enum issues gcc 4.5 discovered --- diff --git a/avahi-autoipd/main.c b/avahi-autoipd/main.c index 4b35f7c..a1bddb2 100644 --- a/avahi-autoipd/main.c +++ b/avahi-autoipd/main.c @@ -1060,7 +1060,7 @@ static int loop(int iface, uint32_t addr) { int next_wakeup_valid = 0; char buf[64]; ArpPacket *in_packet = NULL; - size_t in_packet_len; + size_t in_packet_len = 0; ArpPacket *out_packet = NULL; size_t out_packet_len; uint8_t hw_address[ETHER_ADDRLEN]; diff --git a/avahi-client/client.c b/avahi-client/client.c index 2b29480..be675ad 100644 --- a/avahi-client/client.c +++ b/avahi-client/client.c @@ -55,7 +55,7 @@ int avahi_client_set_dbus_error(AvahiClient *client, DBusError *error) { return avahi_client_set_errno(client, avahi_error_dbus_to_number(error->name)); } -static void client_set_state (AvahiClient *client, AvahiServerState state) { +static void client_set_state(AvahiClient *client, AvahiClientState state) { assert(client); if (client->state == state) @@ -324,7 +324,7 @@ static int get_server_state(AvahiClient *client, int *ret_error) { dbus_error_is_set (&error)) goto fail; - client_set_state(client, (AvahiServerState) state); + client_set_state(client, (AvahiClientState) state); dbus_message_unref(message); dbus_message_unref(reply); diff --git a/avahi-gobject/ga-entry-group.c b/avahi-gobject/ga-entry-group.c index 23e8ec3..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[] = {