Trivial optimization
* strace.c: Set default interactive = 1 statically instead
of doing it in main().
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/strace.c b/strace.c
index 0da9afb..835003e 100644
--- a/strace.c
+++ b/strace.c
@@ -86,7 +86,8 @@
static unsigned int syscall_trap_sig = SIGTRAP;
int dtime = 0, xflag = 0, qflag = 0;
cflag_t cflag = CFLAG_NONE;
-static int iflag = 0, interactive = 0, pflag_seen = 0, rflag = 0, tflag = 0;
+static int iflag = 0, pflag_seen = 0, rflag = 0, tflag = 0;
+static int interactive = 1;
/*
* daemonized_tracer supports -D option.
* With this option, strace forks twice.
@@ -989,7 +990,6 @@
tcbtab[c] = tcp++;
outf = stderr;
- interactive = 1;
set_sortby(DEFAULT_SORTBY);
set_personality(DEFAULT_PERSONALITY);
qualify("trace=all");