diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-06-04 21:09:45 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-06-04 21:09:45 +0000 |
commit | 23f3100db480dc09ce58071b00a8b138f6e30df8 (patch) | |
tree | a930870054fb639606ec32fe591e5abbc94696a5 | |
parent | eff6326436a65eef4fa195ea068575fbaf3e744d (diff) |
portability fix
git-svn-id: file:///home/lennart/svn/public/nss-mdns/trunk@79 0ee8848e-81ea-0310-a63a-f631d1a40d77
-rw-r--r-- | src/query.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |