From c8939cf402299d704d258ef2a9e9ffd317bc33f3 Mon Sep 17 00:00:00 2001 From: krw Date: Sat, 16 Apr 2016 18:32:29 +0000 Subject: Change last non-/gnu/ fcntl(x, F_GETFL, 0) strays to fcntl(x, F_GETFL). No functional change. ok millert@ --- usr.sbin/npppd/pptp/pptp_ctrl.c | 6 +++--- usr.sbin/npppd/pptp/pptpd.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'usr.sbin/npppd') 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 #include #include @@ -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 #include @@ -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; -- cgit v1.2.3-59-g8ed1b