sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit e427364a28efdd0e2d6a3f7e7352e45a37dff44b
parent 4671b4c9744038e72f100553a119df8b5fdc8dd3
Author: Evan Gates <evan.gates@gmail.com>
Date:   Tue, 24 Feb 2015 18:44:13 -0800

use struct literal instead of filling each field manually

Diffstat:
Mfind.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/find.c b/find.c @@ -853,11 +853,8 @@ parse(int argc, char **argv) * if there was an expression but no -print, -exec, or -ok, add -a -print * in rpn, not infix */ - if (print) { - out->u.pinfo = find_primary("-print"); - out->type = PRIM; - out++; - } + if (print) + *out++ = (Tok){ .u.pinfo = find_primary("-print"), .type = PRIM }; if (print == 2) *out++ = and;