summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-03-24 04:44:26 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-03-24 04:44:26 +0000
commit05c54a7bd19c7e2d847e686848d185a4a16fa465 (patch)
treec2b41eb6a2fd8a2f5dc12b3f09c08722249a0f08
parenta4f899c2c09a410804973e15612dd60d2cab2b98 (diff)
Remove a couple of compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3423 a5019735-40e9-0310-863c-91ae7b9d1cf9
-rw-r--r--none/tests/x86/sigcontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/none/tests/x86/sigcontext.c b/none/tests/x86/sigcontext.c
index 940f1a5b..5ef9cb40 100644
--- a/none/tests/x86/sigcontext.c
+++ b/none/tests/x86/sigcontext.c
@@ -29,7 +29,7 @@ static void handler2(int sig, struct sigcontext sc)
/* Since the handler will be called as kill leaves the kernel,
this is replacing the kill syscall's return value. */
if (sc.eax != 0)
- printf("FAILED: handler2 expected eax == 0, not %d\n", sc.eax);
+ printf("FAILED: handler2 expected eax == 0, not %p\n", (void*)sc.eax);
sc.eax = VAL2;
@@ -44,7 +44,7 @@ int main()
{
struct sigaction sa;
int ret;
- int v1, v2, v3, v4;
+ int v2, v3, v4;
sa.sa_handler = handler1;
sa.sa_flags = SA_SIGINFO;