summaryrefslogtreecommitdiffstats
path: root/usr.sbin/npppd
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-04-05 21:24:02 +0000
committerkrw <krw@openbsd.org>2016-04-05 21:24:02 +0000
commit42596f130c71b1525355bf62ca71a9658e3fbfab (patch)
treee676f1d4b4bded0feb6fc1718454d93647f378d1 /usr.sbin/npppd
parentUse the "idr" API here as well, reducing the diffs to Linux. (diff)
downloadwireguard-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 'usr.sbin/npppd')
-rw-r--r--usr.sbin/npppd/npppd/npppd_subr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/npppd/npppd/npppd_subr.c b/usr.sbin/npppd/npppd/npppd_subr.c
index db9877decb6..2c207c6a3ff 100644
--- a/usr.sbin/npppd/npppd/npppd_subr.c
+++ b/usr.sbin/npppd/npppd/npppd_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npppd_subr.c,v 1.17 2015/09/13 08:22:10 mpi Exp $ */
+/* $OpenBSD: npppd_subr.c,v 1.18 2016/04/05 21:24:02 krw Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -140,7 +140,7 @@ in_route0(int type, struct in_addr *dest, struct in_addr *mask,
char *cp, buf[sizeof(*rtm) + sizeof(struct sockaddr_in) * 3 +
sizeof(dl_buf) + 128];
const char *strtype;
- int rval, dummy, flags, sock;
+ int rval, flags, sock;
sock = -1;
@@ -231,8 +231,7 @@ in_route0(int type, struct in_addr *dest, struct in_addr *mask,
goto fail;
}
- dummy = 0;
- if ((flags = fcntl(sock, F_GETFL, dummy)) < 0) {
+ if ((flags = fcntl(sock, F_GETFL)) < 0) {
log_printf(LOG_ERR, "fcntl(,F_GETFL) failed on %s : %m",
__func__);
goto fail;