diff options
author | krw <krw@openbsd.org> | 2016-04-16 18:32:29 +0000 |
---|---|---|
committer | krw <krw@openbsd.org> | 2016-04-16 18:32:29 +0000 |
commit | c8939cf402299d704d258ef2a9e9ffd317bc33f3 (patch) | |
tree | 4f2e525846ffb7fafc473d6647db6e5d2e170c0f /usr.sbin/npppd | |
parent | Make the gmbus code work on valleyview. (diff) | |
download | wireguard-openbsd-c8939cf402299d704d258ef2a9e9ffd317bc33f3.tar.xz wireguard-openbsd-c8939cf402299d704d258ef2a9e9ffd317bc33f3.zip |
Change last non-/gnu/ fcntl(x, F_GETFL, 0) strays to fcntl(x, F_GETFL).
No functional change.
ok millert@
Diffstat (limited to 'usr.sbin/npppd')
-rw-r--r-- | usr.sbin/npppd/pptp/pptp_ctrl.c | 6 | ||||
-rw-r--r-- | usr.sbin/npppd/pptp/pptpd.c | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/npppd/pptp/pptp_ctrl.c b/usr.sbin/npppd/pptp/pptp_ctrl.c index 1dfdc030b87..e9c85c4b36e 100644 --- a/usr.sbin/npppd/pptp/pptp_ctrl.c +++ b/usr.sbin/npppd/pptp/pptp_ctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pptp_ctrl.c,v 1.10 2015/05/12 05:30:24 yasuoka Exp $ */ +/* $OpenBSD: pptp_ctrl.c,v 1.11 2016/04/16 18:32:29 krw Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -29,7 +29,7 @@ * PPTP(RFC 2637) control connection implementation. * currently it only support PAC part */ -/* $Id: pptp_ctrl.c,v 1.10 2015/05/12 05:30:24 yasuoka Exp $ */ +/* $Id: pptp_ctrl.c,v 1.11 2016/04/16 18:32:29 krw Exp $ */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> @@ -181,7 +181,7 @@ pptp_ctrl_start(pptp_ctrl *_this) pptp_ctrl_log(_this, LOG_INFO, "Starting peer=%s:%s/tcp " "sock=%s:%s/tcp", hbuf0, sbuf0, hbuf1, sbuf1); - if ((ival = fcntl(_this->sock, F_GETFL, 0)) < 0) { + if ((ival = fcntl(_this->sock, F_GETFL)) < 0) { pptp_ctrl_log(_this, LOG_ERR, "fcntl(F_GET_FL) failed at %s(): %m", __func__); goto fail; diff --git a/usr.sbin/npppd/pptp/pptpd.c b/usr.sbin/npppd/pptp/pptpd.c index 0c6475cb7ee..abbdd568fde 100644 --- a/usr.sbin/npppd/pptp/pptpd.c +++ b/usr.sbin/npppd/pptp/pptpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pptpd.c,v 1.30 2016/03/21 00:49:36 guenther Exp $ */ +/* $OpenBSD: pptpd.c,v 1.31 2016/04/16 18:32:29 krw Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -25,12 +25,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -/* $Id: pptpd.c,v 1.30 2016/03/21 00:49:36 guenther Exp $ */ +/* $Id: pptpd.c,v 1.31 2016/04/16 18:32:29 krw Exp $ */ /**@file * This file provides a implementation of PPTP daemon. Currently it * provides functions for PAC (PPTP Access Concentrator) only. - * $Id: pptpd.c,v 1.30 2016/03/21 00:49:36 guenther Exp $ + * $Id: pptpd.c,v 1.31 2016/04/16 18:32:29 krw Exp $ */ #include <sys/types.h> #include <sys/socket.h> @@ -358,7 +358,7 @@ pptpd_listener_start(pptpd_listener *_this) pptpd_log(_this->self, LOG_WARNING, "%s(): setsockopt(IP_PIPEX) failed: %m", __func__); #endif - if ((ival = fcntl(sock_gre, F_GETFL, 0)) < 0) { + if ((ival = fcntl(sock_gre, F_GETFL)) < 0) { pptpd_log(_this->self, LOG_ERR, "fcntl(F_GET_FL) failed at %s(): %m", __func__); goto fail; |