Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-06-07 05:37:20 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-07 05:37:20 +0400
commitb841df7954ad31383688775114132af73b7693d4 (patch)
tree6f7dc0d6dd5d9aedec9196f6d9110432779dd5c5 /winsup/utils
parent80082f1ec41b821a15372dd53da7225fd642ed0d (diff)
* strace.cc (main): Make toggle a local variable.
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/ChangeLog4
-rw-r--r--winsup/utils/strace.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog
index c5c6c60d7..dd09e50a4 100644
--- a/winsup/utils/ChangeLog
+++ b/winsup/utils/ChangeLog
@@ -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>
* strace.cc (toggle): New global variable.
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc
index 42d2fef59..69a7fa807 100644
--- a/winsup/utils/strace.cc
+++ b/winsup/utils/strace.cc
@@ -43,7 +43,6 @@ static int numerror = 1;
static int usecs = 1;
static int delta = 1;
static int hhmmss = 0;
-static int toggle = 0;
static int bufsize = 0;
static int new_window = 0;
static long flush_period = 0;
@@ -898,6 +897,7 @@ main (int argc, char **argv)
FILE *ofile = NULL;
pid_t pid = 0;
int opt;
+ int toggle = 0;
if (!(pgm = strrchr (*argv, '\\')) && !(pgm = strrchr (*argv, '/')))
pgm = *argv;