summaryrefslogtreecommitdiff
path: root/usr.bin/doas
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2015-07-19 22:11:42 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2015-07-19 22:11:42 +0000
commit5f30dfa92ed0b08e36ab070ceb64a4cc628d39f7 (patch)
tree3e188f31a56cb7aa23307f8acf98ee4bd665f08f /usr.bin/doas
parent8bb3136d47b1509b97b604326621d9b123901df1 (diff)
wrap long lines and kill some whitespace
Diffstat (limited to 'usr.bin/doas')
-rw-r--r--usr.bin/doas/parse.y10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/doas/parse.y b/usr.bin/doas/parse.y
index f9e56f4c43d..9c463cf1256 100644
--- a/usr.bin/doas/parse.y
+++ b/usr.bin/doas/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.5 2015/07/19 22:09:08 benno Exp $ */
+/* $OpenBSD: parse.y,v 1.6 2015/07/19 22:11:41 benno Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -77,7 +77,8 @@ rule: action ident target cmd {
maxrules = 63;
else
maxrules *= 2;
- if (!(rules = reallocarray(rules, maxrules, sizeof(*rules))))
+ if (!(rules = reallocarray(rules, maxrules,
+ sizeof(*rules))))
errx(1, "can't allocate rules");
}
rules[nrules++] = r;
@@ -116,7 +117,8 @@ envlist: /* empty */ {
errx(1, "can't allocate envlist");
} | envlist TSTRING {
int nenv = arraylen($1.envlist);
- if (!($$.envlist = reallocarray($1.envlist, nenv + 2, sizeof(char *))))
+ if (!($$.envlist = reallocarray($1.envlist, nenv + 2,
+ sizeof(char *))))
errx(1, "can't allocate envlist");
$$.envlist[nenv] = $2.str;
$$.envlist[nenv + 1] = NULL;
@@ -180,7 +182,7 @@ repeat:
next = getc(yyfp);
if (next == '\n')
goto repeat;
- else
+ else
c = next;
case '\n':
case '{':