]> granicus.if.org Git - strace/commitdiff
print_sigevent: remove redundant cast
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 22 Dec 2016 17:07:24 +0000 (17:07 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 22 Dec 2016 23:11:02 +0000 (23:11 +0000)
* print_sigevent.c (print_sigevent): Remove redundant cast from
struct_sigevent.sigev_value.sival_ptr to unsigned long as the former
is not a pointer but an unsigned integer.

print_sigevent.c

index da912ba3cc8dc93a2f48dba78d91f109a77cf763..0a3fceac65bf1d37af1146c8302e0e98a2d904a4 100644 (file)
@@ -46,7 +46,7 @@ MPERS_PRINTER_DECL(void, print_sigevent, struct tcb *tcp, const long addr)
        if (sev.sigev_value.sival_ptr) {
                tprintf("sigev_value={sival_int=%d, sival_ptr=",
                        sev.sigev_value.sival_int);
-               printaddr((unsigned long) sev.sigev_value.sival_ptr);
+               printaddr(sev.sigev_value.sival_ptr);
                tprints("}, ");
        }