From: Guy Harris Date: Sat, 15 Sep 2018 16:57:05 +0000 (-0700) Subject: Squelch a narrowing warning. X-Git-Tag: libpcap-1.10-bp~803 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/5c4d42ba498c3e26f5b04c41ec5c6505f5218e56 Squelch a narrowing warning. --- diff --git a/rpcapd/daemon.c b/rpcapd/daemon.c index 4d8d7349..e30eeef1 100644 --- a/rpcapd/daemon.c +++ b/rpcapd/daemon.c @@ -2359,8 +2359,8 @@ daemon_thrdatamain(void *ptr) // This protocol needs to be updated with a new version // before 2038-01-19 03:14:07 UTC. // - net_pkt_header->timestamp_sec = (uint32)htonl(pkt_header->ts.tv_sec); - net_pkt_header->timestamp_usec = (uint32)htonl(pkt_header->ts.tv_usec); + net_pkt_header->timestamp_sec = htonl((uint32)pkt_header->ts.tv_sec); + net_pkt_header->timestamp_usec = htonl((uint32)pkt_header->ts.tv_usec); // Bufferize the pkt data if (sock_bufferize((char *) pkt_data, pkt_header->caplen,