From 0aa9cf807edb044d43e09b8e2fe4fad77590b229 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 20 Dec 2016 23:30:54 +0000 Subject: [PATCH] print_sigset_addr_len: change address argument type from long to kernel_ureg_t * defs.h (print_sigset_addr_len) Change address argument type from long to kernel_ureg_t. * signal.c (print_sigset_addr_len_limit, print_sigset_addr_len, decode_old_sigaction, decode_new_sigaction): Likewise. --- defs.h | 5 ++++- signal.c | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/defs.h b/defs.h index 6d480481..989a45d9 100644 --- a/defs.h +++ b/defs.h @@ -671,7 +671,10 @@ extern int decode_sockaddr(struct tcb *, kernel_ureg_t addr, int addrlen); extern void printuid(const char *, const unsigned int); -extern void print_sigset_addr_len(struct tcb *, long, long); + +extern void +print_sigset_addr_len(struct tcb *, kernel_ureg_t addr, long len); + extern const char *sprintsigmask_n(const char *, const void *, unsigned int); #define tprintsigmask_addr(prefix, mask) \ tprints(sprintsigmask_n((prefix), (mask), sizeof(mask))) diff --git a/signal.c b/signal.c index dd6fb2d3..6a8193b3 100644 --- a/signal.c +++ b/signal.c @@ -242,7 +242,8 @@ printsignal(int nr) } static void -print_sigset_addr_len_limit(struct tcb *tcp, long addr, long len, long min_len) +print_sigset_addr_len_limit(struct tcb *const tcp, const kernel_ureg_t addr, + const long len, const long min_len) { /* * Here len is usually equal to NSIG / 8 or current_wordsize. @@ -259,7 +260,8 @@ print_sigset_addr_len_limit(struct tcb *tcp, long addr, long len, long min_len) } void -print_sigset_addr_len(struct tcb *tcp, long addr, long len) +print_sigset_addr_len(struct tcb *const tcp, const kernel_ureg_t addr, + const long len) { print_sigset_addr_len_limit(tcp, addr, len, current_wordsize); } @@ -304,7 +306,7 @@ struct old_sigaction32 { }; static void -decode_old_sigaction(struct tcb *tcp, long addr) +decode_old_sigaction(struct tcb *const tcp, const kernel_ureg_t addr) { struct old_sigaction sa; @@ -501,7 +503,7 @@ struct new_sigaction32 }; static void -decode_new_sigaction(struct tcb *tcp, long addr) +decode_new_sigaction(struct tcb *const tcp, const kernel_ureg_t addr) { struct new_sigaction sa;