]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch some shortening warnings.
authorGuy Harris <[email protected]>
Thu, 13 Sep 2018 06:51:05 +0000 (23:51 -0700)
committerGuy Harris <[email protected]>
Thu, 13 Sep 2018 06:51:05 +0000 (23:51 -0700)
rpcapd/daemon.c
sockutils.c

index 4502e084a921ca8082728d5504ea6068fe42280f..4d8d7349d3a4c1404878c853afeede3bd0b44e3b 100644 (file)
@@ -213,7 +213,7 @@ daemon_serviceloop(SOCKET sockctrl_in, SOCKET sockctrl_out, int isactive, int nu
 
                        FD_SET(pars.sockctrl_in, &rfds);
 
-                       retval = select(pars.sockctrl_in + 1, &rfds, NULL, NULL, &tv);
+                       retval = select((int)pars.sockctrl_in + 1, &rfds, NULL, NULL, &tv);
                        if (retval == -1)
                        {
                                sock_geterror("select failed: ", errmsgbuf, PCAP_ERRBUF_SIZE);
@@ -492,7 +492,7 @@ daemon_serviceloop(SOCKET sockctrl_in, SOCKET sockctrl_out, int isactive, int nu
 
                        FD_SET(pars.sockctrl_in, &rfds);
 
-                       retval = select(pars.sockctrl_in + 1, &rfds, NULL, NULL, &tv);
+                       retval = select((int)pars.sockctrl_in + 1, &rfds, NULL, NULL, &tv);
                        if (retval == -1)
                        {
                                sock_geterror("select failed: ", errmsgbuf, PCAP_ERRBUF_SIZE);
index e01bd9679b40d5651129e56d28dd6cb5c1c0475f..d2ceaaba2612603a01ec31177fcd387dbdc751e5 100644 (file)
@@ -955,7 +955,7 @@ int sock_recv_dgram(SOCKET sock, void *buffer, size_t size,
         * don't need to loop.
         */
 #ifdef _WIN32
-       nread = recv(sock, buffer, size, 0);
+       nread = recv(sock, buffer, (int)size, 0);
        if (nread == SOCKET_ERROR)
        {
                /*