]> granicus.if.org Git - strace/commitdiff
fetch_struct_flock: change address argument type from long to kernel_ureg_t
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Dec 2016 21:15:59 +0000 (21:15 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 25 Dec 2016 11:32:43 +0000 (11:32 +0000)
* fetch_struct_flock.c (fetch_struct_flock, fetch_struct_flock64):
Change address argument type from long to kernel_ureg_t.

fetch_struct_flock.c

index b5713f4f7ad9c6d78f0ec87a4a4a6857fded7303..773505fef510ca0b42018effc29fd46f2e558e80 100644 (file)
@@ -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;