summaryrefslogtreecommitdiff
path: root/lib/libpcap
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-04-05 21:24:03 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-04-05 21:24:03 +0000
commit9c9a3471c3ebf497bee9fd16ac3581c335429165 (patch)
treef23d6f14d190db3883f0123c645f3583237cc972 /lib/libpcap
parentf5f92c19a5ed8a465fc27f2f30edc4410374597f (diff)
Move more fcntl(,F_GETFL,0) -> fcntl(,F_GETFL).
No functional change. ok guenther@
Diffstat (limited to 'lib/libpcap')
-rw-r--r--lib/libpcap/pcap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpcap/pcap.c b/lib/libpcap/pcap.c
index ff795ef3f53..4372e22ead7 100644
--- a/lib/libpcap/pcap.c
+++ b/lib/libpcap/pcap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcap.c,v 1.17 2015/11/17 21:39:23 mmcc Exp $ */
+/* $OpenBSD: pcap.c,v 1.18 2016/04/05 21:24:02 krw Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998
@@ -408,7 +408,7 @@ pcap_getnonblock(pcap_t *p, char *errbuf)
{
int fdflags;
- fdflags = fcntl(p->fd, F_GETFL, 0);
+ fdflags = fcntl(p->fd, F_GETFL);
if (fdflags == -1) {
snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "F_GETFL: %s",
pcap_strerror(errno));
@@ -425,7 +425,7 @@ pcap_setnonblock(pcap_t *p, int nonblock, char *errbuf)
{
int fdflags;
- fdflags = fcntl(p->fd, F_GETFL, 0);
+ fdflags = fcntl(p->fd, F_GETFL);
if (fdflags == -1) {
snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "F_GETFL: %s",
pcap_strerror(errno));