From e6271b7da4188615215c29c5ac3131d48a5b7cb4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 24 Oct 2005 00:16:56 +0000 Subject: [PATCH] fix IP_TTL/IP_RECVTTL on linux git-svn-id: file:///home/lennart/svn/public/avahi/trunk@852 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/socket.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/avahi-core/socket.c b/avahi-core/socket.c index 3c1da56..f3d0334 100644 --- a/avahi-core/socket.c +++ b/avahi-core/socket.c @@ -590,9 +590,8 @@ AvahiDnsPacket* avahi_recv_dns_packet_ipv4(int fd, struct sockaddr_in *ret_sa, A switch (cmsg->cmsg_type) { #ifdef IP_RECVTTL case IP_RECVTTL: -#else - case IP_TTL: #endif + case IP_TTL: if (ret_ttl) *ret_ttl = (uint8_t) (*(int *) CMSG_DATA(cmsg)); @@ -634,7 +633,7 @@ AvahiDnsPacket* avahi_recv_dns_packet_ipv4(int fd, struct sockaddr_in *ret_sa, A #endif default: - avahi_log_warn("Unhandled cmsg_type : %d",cmsg->cmsg_type); + avahi_log_warn("Unhandled cmsg_type : %d", cmsg->cmsg_type); break; } } -- 2.39.5