summaryrefslogtreecommitdiff
path: root/usr.sbin/pppd
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 /usr.sbin/pppd
parentf5f92c19a5ed8a465fc27f2f30edc4410374597f (diff)
Move more fcntl(,F_GETFL,0) -> fcntl(,F_GETFL).
No functional change. ok guenther@
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r--usr.sbin/pppd/chat/chat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pppd/chat/chat.c b/usr.sbin/pppd/chat/chat.c
index 8092c485f69..9f4ac4dd698 100644
--- a/usr.sbin/pppd/chat/chat.c
+++ b/usr.sbin/pppd/chat/chat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chat.c,v 1.34 2016/03/16 15:41:11 krw Exp $ */
+/* $OpenBSD: chat.c,v 1.35 2016/04/05 21:24:02 krw Exp $ */
/*
* Chat -- a program for automatic session establishment (i.e. dial
@@ -468,7 +468,7 @@ int signo;
alarmed = 1; /* Reset alarm to avoid race window */
signal(SIGALRM, sigalrm); /* that can cause hanging in read() */
- if ((flags = fcntl(0, F_GETFL, 0)) == -1)
+ if ((flags = fcntl(0, F_GETFL)) == -1)
fatal(2, "Can't get file mode flags on stdin: %m");
if (fcntl(0, F_SETFL, flags | O_NONBLOCK) == -1)
@@ -482,7 +482,7 @@ void unalarm()
{
int flags;
- if ((flags = fcntl(0, F_GETFL, 0)) == -1)
+ if ((flags = fcntl(0, F_GETFL)) == -1)
fatal(2, "Can't get file mode flags on stdin: %m");
if (fcntl(0, F_SETFL, flags & ~O_NONBLOCK) == -1)
@@ -1139,7 +1139,7 @@ int get_char()
logmsg("warning: read() on stdin returned %d", status);
case -1:
- if ((status = fcntl(0, F_GETFL, 0)) == -1)
+ if ((status = fcntl(0, F_GETFL)) == -1)
fatal(2, "Can't get file mode flags on stdin: %m");
if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1)
@@ -1167,7 +1167,7 @@ int c;
logmsg("warning: write() on stdout returned %d", status);
case -1:
- if ((status = fcntl(0, F_GETFL, 0)) == -1)
+ if ((status = fcntl(0, F_GETFL)) == -1)
fatal(2, "Can't get file mode flags on stdin, %m");
if (fcntl(0, F_SETFL, status & ~O_NONBLOCK) == -1)