summaryrefslogtreecommitdiffstats
path: root/avahi-core/socket.c
diff options
context:
space:
mode:
authorSebastien Estienne <sebastien.estienne@gmail.com>2005-10-19 22:12:28 +0000
committerSebastien Estienne <sebastien.estienne@gmail.com>2005-10-19 22:12:28 +0000
commit4d2e029918b96dd61ace73ea6ad0de556ea3f293 (patch)
tree8710ef75d6a2c14c644b1b6b06f6c09a4460ffa6 /avahi-core/socket.c
parenta26b065238debb81e25106b573addb323e529bce (diff)
* replaced some ioctl by if_nametoindex and if_indextoname
* cosmetic fix in socket.c git-svn-id: file:///home/lennart/svn/public/avahi/trunk@829 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/socket.c')
-rw-r--r--avahi-core/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi-core/socket.c b/avahi-core/socket.c
index de27226..12a8605 100644
--- a/avahi-core/socket.c
+++ b/avahi-core/socket.c
@@ -114,7 +114,7 @@ int avahi_mdns_mcast_join_ipv4(int fd, int idx) {
memset(&mreq, 0, sizeof(mreq));
if ((!if_indextoname(idx, ifreq.ifr_name))) {
- avahi_log_warn("Can't find iface name for iface index %i:%s\n", idx, strerror(errno));
+ avahi_log_warn("if_indextoname failed: %s", strerror(errno));
return -1;
}
@@ -171,7 +171,7 @@ int avahi_mdns_mcast_leave_ipv4(int fd, int idx) {
memset(&mreq, 0, sizeof(mreq));
if ((!if_indextoname(idx, ifreq.ifr_name))) {
- avahi_log_warn("Can't find iface name for iface index %i:%s\n", idx, strerror(errno));
+ avahi_log_warn("if_indextoname failed: %s", strerror(errno));
return -1;
}