]> granicus.if.org Git - strace/blobdiff - execve.c
io: change size types from unsigned long to kernel_ureg_t
[strace] / execve.c
index d2ff9f740435cf96320d61b3df8be1d4f5eaf6db..03fe476296e42b4bfe559a756d32d184b9effc49 100644 (file)
--- a/execve.c
+++ b/execve.c
@@ -34,7 +34,7 @@
 #include "defs.h"
 
 static void
-printargv(struct tcb *tcp, long addr)
+printargv(struct tcb *const tcp, kernel_ureg_t addr)
 {
        if (!addr || !verbose(tcp)) {
                printaddr(addr);
@@ -70,13 +70,13 @@ printargv(struct tcb *tcp, long addr)
                        break;
                }
                tprints(sep);
-               printstr(tcp, wordsize < sizeof(cp.p64) ? cp.p32 : cp.p64, -1);
+               printstr(tcp, wordsize < sizeof(cp.p64) ? cp.p32 : cp.p64);
        }
        tprints("]");
 }
 
 static void
-printargc(struct tcb *tcp, long addr)
+printargc(struct tcb *const tcp, kernel_ureg_t addr)
 {
        if (!addr || !verbose(tcp)) {
                printaddr(addr);