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.
* 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
/* 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.