diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-07-28 21:36:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-07-28 21:36:04 +0000 |
commit | 479deecade77952338e17810ad5a9433581157d5 (patch) | |
tree | b67f7a7a517ec94c7e249933c3ffd6ddcece9b74 /usr.bin/doas/parse.y | |
parent | 487c4e7afe5a30c820407353350b282a13960caa (diff) |
wrap some exceedingly long lines
Diffstat (limited to 'usr.bin/doas/parse.y')
-rw-r--r-- | usr.bin/doas/parse.y | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/doas/parse.y b/usr.bin/doas/parse.y index 0003aec2865..240da5e9ce8 100644 --- a/usr.bin/doas/parse.y +++ b/usr.bin/doas/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.10 2015/07/24 06:36:42 zhuk Exp $ */ +/* $OpenBSD: parse.y,v 1.11 2015/07/28 21:36:03 deraadt Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -162,7 +162,8 @@ argslist: /* empty */ { errx(1, "can't allocate args"); } | argslist TSTRING { int nargs = arraylen($1.cmdargs); - if (!($$.cmdargs = reallocarray($1.cmdargs, nargs + 2, sizeof(char *)))) + if (!($$.cmdargs = reallocarray($1.cmdargs, nargs + 2, + sizeof(char *)))) errx(1, "can't allocate args"); $$.cmdargs[nargs] = $2.str; $$.cmdargs[nargs + 1] = NULL; @@ -234,7 +235,8 @@ repeat: for (;; c = getc(yyfp), yylval.colno++) { switch (c) { case '\0': - yyerror("unallowed character NUL in column %d", yylval.colno + 1); + yyerror("unallowed character NUL in column %d", + yylval.colno + 1); escape = 0; continue; case '\\': @@ -291,8 +293,9 @@ eow: ungetc(c, yyfp); if (p == buf) { /* - * There could be a number of reasons for empty buffer, and we handle - * all of them here, to avoid cluttering the main loop. + * There could be a number of reasons for empty buffer, + * and we handle all of them here, to avoid cluttering + * the main loop. */ if (c == EOF) return 0; |