From a593a4c5e34122f8a0d3c52bad8e4e5df157fddc Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 7 Mar 2005 10:24:23 +0000 Subject: [PATCH] * strace.cc (handle_output_debug_string): Fix compiler warning. --- winsup/utils/ChangeLog | 4 ++++ winsup/utils/strace.cc | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 51f34cd6d..44a5d12dc 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +2005-03-07 Corinna Vinschen + + * strace.cc (handle_output_debug_string): Fix compiler warning. + 2005-03-06 Christopher Faylor * cygpath.cc (usage): Pass in one more copy of program_name to printf diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc index 998350c9c..ab0dc62e2 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;