From: Dmitry V. Levin Date: Wed, 21 Dec 2016 21:15:59 +0000 (+0000) Subject: fetch_struct_flock: change address argument type from long to kernel_ureg_t X-Git-Tag: v4.16~233 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce27e2acf46e44a1fa8dbe9e2ccaac0ba7c20edb;p=strace fetch_struct_flock: change address argument type from long to kernel_ureg_t * fetch_struct_flock.c (fetch_struct_flock, fetch_struct_flock64): Change address argument type from long to kernel_ureg_t. --- diff --git a/fetch_struct_flock.c b/fetch_struct_flock.c index b5713f4f..773505fe 100644 --- a/fetch_struct_flock.c +++ b/fetch_struct_flock.c @@ -51,8 +51,8 @@ typedef struct_kernel_flock64 struct_flock64; && FLOCK_MEMBERS_EQ(type, l_len) \ && FLOCK_MEMBERS_EQ(type, l_pid)) -MPERS_PRINTER_DECL(bool, fetch_struct_flock, - struct tcb *tcp, const long addr, void *p) +MPERS_PRINTER_DECL(bool, fetch_struct_flock, struct tcb *const tcp, + const kernel_ureg_t addr, void *const p) { struct_kernel_flock64 *pfl = p; struct_flock mfl; @@ -71,8 +71,8 @@ MPERS_PRINTER_DECL(bool, fetch_struct_flock, return true; } -MPERS_PRINTER_DECL(bool, fetch_struct_flock64, - struct tcb *tcp, const long addr, void *p) +MPERS_PRINTER_DECL(bool, fetch_struct_flock64, struct tcb *const tcp, + const kernel_ureg_t addr, void *const p) { struct_kernel_flock64 *pfl = p; struct_flock64 mfl;