diff options
author | 2016-04-05 21:24:02 +0000 | |
---|---|---|
committer | 2016-04-05 21:24:02 +0000 | |
commit | 42596f130c71b1525355bf62ca71a9658e3fbfab (patch) | |
tree | e676f1d4b4bded0feb6fc1718454d93647f378d1 /lib | |
parent | Use the "idr" API here as well, reducing the diffs to Linux. (diff) | |
download | wireguard-openbsd-42596f130c71b1525355bf62ca71a9658e3fbfab.tar.xz wireguard-openbsd-42596f130c71b1525355bf62ca71a9658e3fbfab.zip |
Move more fcntl(,F_GETFL,0) -> fcntl(,F_GETFL).
No functional change.
ok guenther@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libedit/read.c | 4 | ||||
-rw-r--r-- | lib/libpcap/pcap.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libedit/read.c b/lib/libedit/read.c index cf3186d327c..048f57f0098 100644 --- a/lib/libedit/read.c +++ b/lib/libedit/read.c @@ -1,4 +1,4 @@ -/* $OpenBSD: read.c,v 1.29 2016/03/22 11:32:18 schwarze Exp $ */ +/* $OpenBSD: read.c,v 1.30 2016/04/05 21:24:02 krw Exp $ */ /* $NetBSD: read.c,v 1.81 2016/02/16 22:53:14 christos Exp $ */ /*- @@ -146,7 +146,7 @@ read__fixio(int fd __attribute__((__unused__)), int e) e = 0; #ifdef TRY_AGAIN #if defined(F_SETFL) && defined(O_NDELAY) - if ((e = fcntl(fd, F_GETFL, 0)) == -1) + if ((e = fcntl(fd, F_GETFL)) == -1) return -1; if (fcntl(fd, F_SETFL, e & ~O_NDELAY) == -1) 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)); |