]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch some warnings.
authorGuy Harris <[email protected]>
Sat, 15 Sep 2018 16:51:46 +0000 (09:51 -0700)
committerGuy Harris <[email protected]>
Sat, 15 Sep 2018 16:51:46 +0000 (09:51 -0700)
pcap-linux.c

index f37d74e15273d43c108d71b311fb069f6cd0f14f..38d4a71afbfaa0e82d9eb630c0eb8c9f52286dc7 100644 (file)
@@ -1488,7 +1488,8 @@ static void pcap_breakloop_linux(pcap_t *handle)
        struct pcap_linux *handlep = handle->priv;
 
        uint64_t value = 1;
        struct pcap_linux *handlep = handle->priv;
 
        uint64_t value = 1;
-       write(handlep->poll_breakloop_fd, &value, sizeof(value));
+       /* XXX - what if this fails? */
+       (void)write(handlep->poll_breakloop_fd, &value, sizeof(value));
 }
 #endif
 
 }
 #endif
 
@@ -5047,7 +5048,7 @@ static int pcap_wait_for_frames_mmap(pcap_t *handle)
 #ifdef HAVE_SYS_EVENTFD_H
                if (pollinfo[1].revents & POLLIN) {
                        uint64_t value;
 #ifdef HAVE_SYS_EVENTFD_H
                if (pollinfo[1].revents & POLLIN) {
                        uint64_t value;
-                       read(handlep->poll_breakloop_fd, &value, sizeof(value));
+                       (void)read(handlep->poll_breakloop_fd, &value, sizeof(value));
                }
 #endif
 
                }
 #endif