summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-11-05 18:42:41 +0000
committermmcc <mmcc@openbsd.org>2015-11-05 18:42:41 +0000
commit2b34cfa2a23ac19de0cf1fae2a3ae2e61c45c7b6 (patch)
treee29ade81120f0603434390d4a7482239456b2a8f
parentCapitalize entire macro name. (diff)
downloadwireguard-openbsd-2b34cfa2a23ac19de0cf1fae2a3ae2e61c45c7b6.tar.xz
wireguard-openbsd-2b34cfa2a23ac19de0cf1fae2a3ae2e61c45c7b6.zip
Add blank lines around pledge call.
-rw-r--r--usr.bin/from/from.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/from/from.c b/usr.bin/from/from.c
index 79bd7506863..52bf5e3af03 100644
--- a/usr.bin/from/from.c
+++ b/usr.bin/from/from.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: from.c,v 1.23 2015/11/03 05:11:46 mmcc Exp $ */
+/* $OpenBSD: from.c,v 1.24 2015/11/05 18:42:41 mmcc Exp $ */
/* $NetBSD: from.c,v 1.6 1995/09/01 01:39:10 jtc Exp $ */
/*
@@ -83,8 +83,10 @@ main(int argc, char *argv[])
exit(EXIT_SUCCESS);
err(1, "%s", file);
}
+
if (pledge("stdio", NULL) == -1)
err(1, "pledge");
+
for (newline = 1; (linelen = getline(&line, &linesize, fp)) != -1;) {
if (*line == '\n') {
newline = 1;