]> git.meshlink.io Git - catta/commitdiff
make gcc even more shut up
authorLennart Poettering <lennart@poettering.net>
Sun, 12 Aug 2007 15:41:10 +0000 (15:41 +0000)
committerLennart Poettering <lennart@poettering.net>
Sun, 12 Aug 2007 15:41:10 +0000 (15:41 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1510 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-autoipd/iface-linux.c
avahi-autoipd/main.c

index bd3fd575ad5166503d21155b22e22c9593554291..5bc0300427db168a1f6082e5ec229b7f3cf6232b 100644 (file)
@@ -110,7 +110,7 @@ static int process_nlmsg(struct nlmsghdr *n) {
         struct ifinfomsg *ifi;
         ifi = NLMSG_DATA(n);
 
-        if (ifi->ifi_family != AF_UNSPEC || ifi->ifi_index != ifindex)
+        if (ifi->ifi_family != AF_UNSPEC || (int) ifi->ifi_index != ifindex)
             return 0;
         
         if (n->nlmsg_type == RTM_DELLINK) {
@@ -139,7 +139,7 @@ static int process_nlmsg(struct nlmsghdr *n) {
         
         ifa = NLMSG_DATA(n);
 
-        if (ifa->ifa_family != AF_INET || ifa->ifa_index != ifindex)
+        if (ifa->ifa_family != AF_INET || (int) ifa->ifa_index != ifindex)
             return 0;
 
         l = NLMSG_PAYLOAD(n, sizeof(*ifa));
index 814b99025be51ab7a900d77f3129977a203f50ed..27c5a29509f740a2233b9b74d34bed43c16e0bdf 100644 (file)
@@ -1042,7 +1042,7 @@ static int loop(int iface, uint32_t addr) {
         FD_ARP,
         FD_IFACE,
         FD_SIGNAL,
-        FD_MAX,
+        FD_MAX
     };
 
     int fd = -1, ret = -1;