diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-03-07 10:24:23 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-03-07 10:24:23 +0000 |
commit | a593a4c5e34122f8a0d3c52bad8e4e5df157fddc (patch) | |
tree | 4dfc6f25d44c651d86dfe56f0eac84f2f1a74c1e /winsup/utils/strace.cc | |
parent | d34d3da637bf845f5cbb269328490069940e1ba8 (diff) | |
download | newlib-a593a4c5e34122f8a0d3c52bad8e4e5df157fddc.zip newlib-a593a4c5e34122f8a0d3c52bad8e4e5df157fddc.tar.gz newlib-a593a4c5e34122f8a0d3c52bad8e4e5df157fddc.tar.bz2 |
* strace.cc (handle_output_debug_string): Fix compiler warning.
Diffstat (limited to 'winsup/utils/strace.cc')
-rw-r--r-- | winsup/utils/strace.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 998350c..ab0dc62 100644 --- a/winsup/utils/strace.cc +++ b/winsup/utils/strace.cc @@ -436,7 +436,7 @@ handle_output_debug_string (DWORD id, LPVOID p, unsigned mask, FILE *ofile) buf[len] = '\0'; char *s = strtok (buf, " "); - unsigned n = strtoul (s, NULL, 16); + unsigned long n = strtoul (s, NULL, 16); s = strchr (s, '\0') + 1; @@ -562,7 +562,7 @@ handle_output_debug_string (DWORD id, LPVOID p, unsigned mask, FILE *ofile) if (include_hex) { s -= 8; - sprintf (s, "%p", n); + sprintf (s, "%p", (void *) n); strchr (s, '\0')[0] = ' '; } child->last_usecs = usecs; |