From e2a4d351426433723d25c87ee6cc15b2a0b1c799 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 11 Mar 2014 19:18:19 +0100 Subject: make -o imply -w --- extrace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extrace.c') diff --git a/extrace.c b/extrace.c index 969c376..b799239 100644 --- a/extrace.c +++ b/extrace.c @@ -7,7 +7,7 @@ * default: show all exec(), globally * -p PID only show exec() descendant of PID * CMD... run CMD... and only show exec() descendant of it - * -o FILE log to FILE instead of standard output + * -o FILE log to FILE instead of standard output (implies -w) * -w wide output: show full command line * -f flat output: no indentation * @@ -181,7 +181,7 @@ main(int argc, char *argv[]) if (getenv("COLUMNS")) width = atoi(getenv("COLUMNS")); - if (width == 0) + if (width <= 0) width = 80; output = stdout; @@ -196,7 +196,7 @@ main(int argc, char *argv[]) perror("fopen"); exit(1); } - break; + /* FALLTROUGH */ case 'w': width = CMDLINE_MAX; break; default: goto usage; } -- cgit 1.4.1