]> granicus.if.org Git - strace/commitdiff
strace.c (trace): Fix compilation warning
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 29 Nov 2011 00:15:59 +0000 (00:15 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 29 Nov 2011 00:15:59 +0000 (00:15 +0000)
strace.c

index 84c59b7b573cf572d035ecc339c916836bf9bdf5..8f8c74c63ab07d4c6fd77c8c2aff6918f0364917 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -2568,7 +2568,7 @@ trace()
 # define PC_FORMAT_ARG /* nothing */
 #endif
                                printleader(tcp);
-                               if (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) == 0) {
+                               if (ptrace(PTRACE_GETSIGINFO, pid, 0, (long) &si) == 0) {
                                        tprints("--- ");
                                        printsiginfo(&si, verbose(tcp));
                                        tprintf(" (%s)" PC_FORMAT_STR " ---",