diff options
author | Christopher Faylor <me@cgf.cx> | 2002-01-22 03:17:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-01-22 03:17:59 +0000 |
commit | ad466e2f75653e042beb5290b0ac00a8343b87dd (patch) | |
tree | 4425a794074de07cd4a5c2372e454d54c0be0e1e /winsup/utils/strace.cc | |
parent | f3647dd7e6ad65cd14c201eb22e3a40028456cf6 (diff) | |
download | newlib-ad466e2f75653e042beb5290b0ac00a8343b87dd.zip newlib-ad466e2f75653e042beb5290b0ac00a8343b87dd.tar.gz newlib-ad466e2f75653e042beb5290b0ac00a8343b87dd.tar.bz2 |
* Makefile.in: Build intermediate cygcheck.o to force use of MINGW_CXXFLAGS.
* cygcheck.cc (cygwin_info): Intitialize variable to quiet g++ warning.
(dump_sysinfo): Make variables unsigned to quiet g++ warnings.
* strace.cc (version_string): Rename from SCCSid.
(add_child): Remove unused variable.
(version): Use version_string. Avoid use of fprintf.
Diffstat (limited to 'winsup/utils/strace.cc')
-rw-r--r-- | winsup/utils/strace.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 67e0d74..bca5211 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -31,7 +31,7 @@ int _impure_ptr; #define alloca __builtin_alloca // Version string. -static char *SCCSid = "@(#)strace V1.0, Copyright (C) 2001 Red Hat Inc., " __DATE__ "\n"; +static const char *version_string = "@(#)strace V1.0, Copyright (C) 2001 Red Hat Inc., " __DATE__ "\n"; static const char *pgm; static int forkdebug = 0; @@ -113,7 +113,6 @@ add_child (DWORD id, HANDLE hproc) children.next = new (child_list); children.next->next = c; lastid = children.next->id = id; - HANDLE me = GetCurrentProcess (); lasth = children.next->hproc = hproc; } @@ -773,7 +772,7 @@ Usage: strace [OPTIONS] <command-line>\n\ static void version () { - fprintf (stderr, SCCSid+4); + fputs (version_string + 4, stderr); } struct option longopts[] = { |