From 23f3100db480dc09ce58071b00a8b138f6e30df8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 4 Jun 2005 21:09:45 +0000 Subject: portability fix git-svn-id: file:///home/lennart/svn/public/nss-mdns/trunk@79 0ee8848e-81ea-0310-a63a-f631d1a40d77 --- src/query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query.c b/src/query.c index 1b66df9..b59513e 100644 --- a/src/query.c +++ b/src/query.c @@ -252,7 +252,7 @@ static int recv_dns_packet(int fd, struct dns_packet **ret_packet, uint8_t* ret_ for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL; cmsg = CMSG_NXTHDR(&msg,cmsg)) { if (cmsg->cmsg_level == SOL_IP && cmsg->cmsg_type == IP_TTL) { - *ret_ttl = (uint8_t) ntohl(*(uint32_t*)CMSG_DATA(cmsg)); + *ret_ttl = (uint8_t) (*(uint32_t*) CMSG_DATA(cmsg)); break; } } -- cgit