summaryrefslogtreecommitdiffstats
path: root/avahi-autoipd
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-08-12 15:41:10 +0000
committerLennart Poettering <lennart@poettering.net>2007-08-12 15:41:10 +0000
commit648db528f5cc197c38f7b17bb09dd53958df6302 (patch)
tree223c1aba598d97630c75e703a426b9afe91f1e27 /avahi-autoipd
parenta1bb251e3a55f944cb1face3464b58728a247722 (diff)
make gcc even more shut up
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1510 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-autoipd')
-rw-r--r--avahi-autoipd/iface-linux.c4
-rw-r--r--avahi-autoipd/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/avahi-autoipd/iface-linux.c b/avahi-autoipd/iface-linux.c
index bd3fd57..5bc0300 100644
--- a/avahi-autoipd/iface-linux.c
+++ b/avahi-autoipd/iface-linux.c
@@ -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));
diff --git a/avahi-autoipd/main.c b/avahi-autoipd/main.c
index 814b990..27c5a29 100644
--- a/avahi-autoipd/main.c
+++ b/avahi-autoipd/main.c
@@ -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;