]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch a narrowing warning.
authorGuy Harris <[email protected]>
Sat, 15 Sep 2018 16:57:05 +0000 (09:57 -0700)
committerGuy Harris <[email protected]>
Sat, 15 Sep 2018 16:57:05 +0000 (09:57 -0700)
rpcapd/daemon.c

index 4d8d7349d3a4c1404878c853afeede3bd0b44e3b..e30eeef1b73d4d2f5d07f63616ccbfbb06e7f8db 100644 (file)
@@ -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,