summaryrefslogtreecommitdiff
path: root/poll.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2016-12-22 16:56:14 +0000
committerDmitry V. Levin <ldv@altlinux.org>2016-12-23 19:26:58 +0000
commit30d13975a43909158ce78977030c26a2d933fefb (patch)
tree0cd0a86c6d46346cb04ee0574d56621c34dd2a2e /poll.c
parentc15071b535669ec0a712ba848ae56b24e763cd68 (diff)
downloadstrace-30d13975a43909158ce78977030c26a2d933fefb.tar.gz
poll: change tracee address type from unsigned long to kernel_ureg_t
* poll.c (decode_poll_entering, decode_poll_exiting): Change the type all tracee address variables from unsigned long to kernel_ureg_t.
Diffstat (limited to 'poll.c')
-rw-r--r--poll.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/poll.c b/poll.c
index 52c46eff4..ae3fd1fde 100644
--- a/poll.c
+++ b/poll.c
@@ -50,7 +50,7 @@ print_pollfd(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
static void
decode_poll_entering(struct tcb *tcp)
{
- const unsigned long addr = tcp->u_arg[0];
+ const kernel_ureg_t addr = tcp->u_arg[0];
const unsigned int nfds = tcp->u_arg[1];
struct pollfd fds;
@@ -65,11 +65,12 @@ decode_poll_exiting(struct tcb *tcp, const long pts)
struct pollfd fds;
const unsigned int nfds = tcp->u_arg[1];
const unsigned long size = sizeof(fds) * nfds;
- const unsigned long start = tcp->u_arg[0];
- const unsigned long end = start + size;
+ const kernel_ureg_t start = tcp->u_arg[0];
+ const kernel_ureg_t end = start + size;
+ kernel_ureg_t cur;
const unsigned long max_printed =
abbrev(tcp) ? max_strlen : -1U;
- unsigned long printed, cur;
+ unsigned long printed;
static char outstr[1024];
char *outptr;