* strace.cc (main): Make toggle a local variable.
This commit is contained in:
parent
80082f1ec4
commit
b841df7954
|
@ -1,3 +1,7 @@
|
||||||
|
2002-06-06 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* strace.cc (main): Make toggle a local variable.
|
||||||
|
|
||||||
2002-06-07 Conrad Scott <conrad.scott@dsl.pipex.com>
|
2002-06-07 Conrad Scott <conrad.scott@dsl.pipex.com>
|
||||||
|
|
||||||
* strace.cc (toggle): New global variable.
|
* strace.cc (toggle): New global variable.
|
||||||
|
|
|
@ -43,7 +43,6 @@ static int numerror = 1;
|
||||||
static int usecs = 1;
|
static int usecs = 1;
|
||||||
static int delta = 1;
|
static int delta = 1;
|
||||||
static int hhmmss = 0;
|
static int hhmmss = 0;
|
||||||
static int toggle = 0;
|
|
||||||
static int bufsize = 0;
|
static int bufsize = 0;
|
||||||
static int new_window = 0;
|
static int new_window = 0;
|
||||||
static long flush_period = 0;
|
static long flush_period = 0;
|
||||||
|
@ -898,6 +897,7 @@ main (int argc, char **argv)
|
||||||
FILE *ofile = NULL;
|
FILE *ofile = NULL;
|
||||||
pid_t pid = 0;
|
pid_t pid = 0;
|
||||||
int opt;
|
int opt;
|
||||||
|
int toggle = 0;
|
||||||
|
|
||||||
if (!(pgm = strrchr (*argv, '\\')) && !(pgm = strrchr (*argv, '/')))
|
if (!(pgm = strrchr (*argv, '\\')) && !(pgm = strrchr (*argv, '/')))
|
||||||
pgm = *argv;
|
pgm = *argv;
|
||||||
|
|
Loading…
Reference in New Issue