aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <benno@openbsd.org>2015-07-19 22:11:41 +0000
committer <benno@openbsd.org>2015-07-19 22:11:41 +0000
commitf5e3a415df7177b7b3a26464341ade4337a1c0b2 (patch)
tree698281692a93267f5f11baa1da9b6b5d76b6d510
parentd205de45f67c03600f61b59aebc17d3a4b25545e (diff)
downloadopendoas-f5e3a415df7177b7b3a26464341ade4337a1c0b2.tar.gz
wrap long lines and kill some whitespace
-rw-r--r--parse.y10
1 files changed, 6 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 5561323..f1e90ab 100644
--- a/parse.y
+++ b/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.4 2015/07/16 23:02:56 nicm Exp $ */
+/* $OpenBSD: parse.y,v 1.5 2015/07/19 22:09:08 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 '{':