]> granicus.if.org Git - strace/commitdiff
fcntl: change address argument type from long to kernel_ureg_t
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Dec 2016 21:13:18 +0000 (21:13 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 25 Dec 2016 11:32:44 +0000 (11:32 +0000)
* fcntl.c (printflock64, printflock, print_f_owner_ex): Change
address argument type from long to kernel_ureg_t.

fcntl.c

diff --git a/fcntl.c b/fcntl.c
index 0a8743b97c1eeecca272dcd6a0bba7af9f1ec626..9caa53afb5783646d2bd744800493bc5295f638e 100644 (file)
--- a/fcntl.c
+++ b/fcntl.c
@@ -54,7 +54,7 @@ print_struct_flock64(const struct_kernel_flock64 *fl, const int getlk)
 }
 
 static void
-printflock64(struct tcb *tcp, const long addr, const int getlk)
+printflock64(struct tcb *const tcp, const kernel_ureg_t addr, const int getlk)
 {
        struct_kernel_flock64 fl;
 
@@ -63,7 +63,7 @@ printflock64(struct tcb *tcp, const long addr, const int getlk)
 }
 
 static void
-printflock(struct tcb *tcp, const long addr, const int getlk)
+printflock(struct tcb *const tcp, const kernel_ureg_t addr, const int getlk)
 {
        struct_kernel_flock64 fl;
 
@@ -72,7 +72,7 @@ printflock(struct tcb *tcp, const long addr, const int getlk)
 }
 
 static void
-print_f_owner_ex(struct tcb *tcp, const long addr)
+print_f_owner_ex(struct tcb *const tcp, const kernel_ureg_t addr)
 {
        struct { int type, pid; } owner;