summaryrefslogtreecommitdiffstats
path: root/usr.bin/rdist
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2016-03-30 20:12:18 +0000
committermillert <millert@openbsd.org>2016-03-30 20:12:18 +0000
commite9ca61b3f897270cea0a68d91fb1f2c766efbaa9 (patch)
tree5abe6c3ff848020a1d7b164957bdb81c3ec1f1fc /usr.bin/rdist
parentThe change to make mkstemp(3) require at least 6 trailing Xs broke (diff)
downloadwireguard-openbsd-e9ca61b3f897270cea0a68d91fb1f2c766efbaa9.tar.xz
wireguard-openbsd-e9ca61b3f897270cea0a68d91fb1f2c766efbaa9.zip
In setnonblocking() rename "mode" variable to "flags".
Diffstat (limited to 'usr.bin/rdist')
-rw-r--r--usr.bin/rdist/child.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/rdist/child.c b/usr.bin/rdist/child.c
index a23599d5b3c..2b4c9703b90 100644
--- a/usr.bin/rdist/child.c
+++ b/usr.bin/rdist/child.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: child.c,v 1.25 2015/01/20 09:00:16 guenther Exp $ */
+/* $OpenBSD: child.c,v 1.26 2016/03/30 20:12:18 millert Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -426,18 +426,18 @@ waitup(void)
}
/*
- * Enable non-blocking I/O mode.
+ * Enable non-blocking I/O.
*/
static int
setnonblocking(int fd)
{
- int mode;
+ int flags;
- if ((mode = fcntl(fd, F_GETFL)) < 0)
+ if ((flags = fcntl(fd, F_GETFL)) < 0)
return (-1);
- if (mode & O_NONBLOCK)
+ if (flags & O_NONBLOCK)
return (0);
- return (fcntl(fd, F_SETFL, mode | O_NONBLOCK));
+ return (fcntl(fd, F_SETFL, flags | O_NONBLOCK));
}
/*