]> granicus.if.org Git - strace/commitdiff
dumpiov_upto: change size types from unsigned long to kernel_ureg_t
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 25 Dec 2016 00:53:52 +0000 (00:53 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 25 Dec 2016 11:32:45 +0000 (11:32 +0000)
* defs.h (dumpiov_upto): Change data_size argument type
from unsigned long to kernel_ureg_t.
* util.c (dumpiov_upto): Change the type of data_size argument
and iov_len variable from unsigned long to kernel_ureg_t.

defs.h
util.c

diff --git a/defs.h b/defs.h
index d8f0d1ba133a229960d10268b3b865f64f31059a..138afeea8dc87a10ded936701c5469393b00c47b 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -607,7 +607,7 @@ extern void
 dumpiov_in_mmsghdr(struct tcb *, kernel_ureg_t addr);
 
 extern void
-dumpiov_upto(struct tcb *, int len, kernel_ureg_t addr, unsigned long data_size);
+dumpiov_upto(struct tcb *, int len, kernel_ureg_t addr, kernel_ureg_t data_size);
 
 extern void
 dumpstr(struct tcb *, kernel_ureg_t addr, int len);
diff --git a/util.c b/util.c
index 72c5251efd05ae68d190919eb8c199f62dfdc73a..10799192146769ade0d548e57c37a75732e9e691 100644 (file)
--- a/util.c
+++ b/util.c
@@ -916,7 +916,7 @@ printstr_ex(struct tcb *const tcp, const kernel_ureg_t addr,
 
 void
 dumpiov_upto(struct tcb *const tcp, const int len, const kernel_ureg_t addr,
-            unsigned long data_size)
+            kernel_ureg_t data_size)
 {
 #if SUPPORTED_PERSONALITIES > 1
        union {
@@ -948,7 +948,7 @@ dumpiov_upto(struct tcb *const tcp, const int len, const kernel_ureg_t addr,
        }
        if (umoven(tcp, addr, size, iov) >= 0) {
                for (i = 0; i < len; i++) {
-                       unsigned long iov_len = iov_iov_len(i);
+                       kernel_ureg_t iov_len = iov_iov_len(i);
                        if (iov_len > data_size)
                                iov_len = data_size;
                        if (!iov_len)