]> git.meshlink.io Git - catta/commitdiff
gcc: minor enum issues gcc 4.5 discovered
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Jul 2010 03:42:52 +0000 (05:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Jul 2010 03:42:52 +0000 (05:42 +0200)
avahi-autoipd/main.c
avahi-client/client.c
avahi-gobject/ga-entry-group.c

index 4b35f7c747a4bc29842024b2ea4ea70eb4ffc357..a1bddb2542ecff976e09260d04de93d3cd6d75ed 100644 (file)
@@ -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];
index 2b29480106fe88724a63073a4cb76d40f3c5b5ea..be675ad2bf81305d0786313a59dcad3e16347001 100644 (file)
@@ -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);
index 23e8ec3c8e28db43db10a2c7936ddffcaf31902f..101acbffbea5bb31047dd5b581f81553e24c5978 100644 (file)
@@ -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[] = {