sbase

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

commit 48d04ae446b39c0e230ec4e8c38d25865fb662db
parent d8656b0189220e73d3a6cd4ebeaec5091824aef1
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 25 Sep 2018 17:57:51 -0700

find: Make -H and -L flag handling clearer

Diffstat:
Mfind.c | 13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/find.c b/find.c @@ -1023,9 +1023,16 @@ main(int argc, char **argv) struct tok *t; ARGBEGIN { - case 'H': gflags.l = !(gflags.h = 1); break; - case 'L': gflags.h = !(gflags.l = 1); break; - default : usage(); + case 'H': + gflags.h = 1; + gflags.l = 0; + break; + case 'L': + gflags.l = 1; + gflags.h = 0; + break; + default: + usage(); } ARGEND paths = argv;