summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2009-06-01 18:45:41 +0000
committerDmitry V. Levin <ldv@altlinux.org>2009-06-01 18:45:41 +0000
commit4ac9d627f4b8d2022958668e5c2f3b784605cb16 (patch)
tree60540980e885d8be16074cfb7b19a25518e22385
parent4bcd5ef92281106dc479ef79623353d59c7101ee (diff)
downloadstrace-obsolete/HEAD.tar.gz
* strace.c (handle_stopped_tcbs): Fix cast for 4th argument passed to ptrace().obsolete/HEAD
-rw-r--r--ChangeLog3
-rw-r--r--strace.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e0b109046..cea9670ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-06-01 Dmitry V. Levin <ldv@altlinux.org>
+ * strace.c (handle_stopped_tcbs): Fix cast for 4th argument
+ passed to ptrace().
+
* bjm.c (sys_query_module): Fix format warning reported by
gcc -Wformat-security.
* file.c (tprint_open_modes): Likewise.
diff --git a/strace.c b/strace.c
index a2bbb6700..d351dc5e7 100644
--- a/strace.c
+++ b/strace.c
@@ -2602,7 +2602,7 @@ handle_stopped_tcbs(struct tcb *tcp)
* Old kernels are known to lie here.
*/
if (ptrace(PTRACE_SETOPTIONS, pid, (char *) 0,
- (void *) (PTRACE_O_TRACESYSGOOD | PTRACE_O_TRACEEXEC)) == 0)
+ (long) (PTRACE_O_TRACESYSGOOD | PTRACE_O_TRACEEXEC)) == 0)
ptrace_stop_sig = SIGTRAP | 0x80;
}
#endif
@@ -2629,7 +2629,7 @@ handle_stopped_tcbs(struct tcb *tcp)
/* Take a better look... */
siginfo_t si;
si.si_signo = 0;
- ptrace(PTRACE_GETSIGINFO, pid, (void*) 0, (void*) &si);
+ ptrace(PTRACE_GETSIGINFO, pid, (void*) 0, (long) &si);
/*
* Check some fields to make sure we see
* real SIGTRAP.