time: change address argument type from long to kernel_ureg_t
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 22 Dec 2016 20:51:33 +0000 (20:51 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 25 Dec 2016 11:32:44 +0000 (11:32 +0000)
* time.c (print_timezone, do_adjtimex): Change address argument type
from long to kernel_ureg_t.

time.c

diff --git a/time.c b/time.c
index b32eddf63562e184d2f65d13f0ee0ff82e6febef..b1f4b4fc9ec66d69f08c0c5ea5cab80706fe727a 100644 (file)
--- a/time.c
+++ b/time.c
@@ -33,7 +33,7 @@
 #include <sys/timex.h>
 
 static void
-print_timezone(struct tcb *tcp, const long addr)
+print_timezone(struct tcb *const tcp, const kernel_ureg_t addr)
 {
        struct timezone tz;
 
@@ -167,7 +167,7 @@ SYS_FUNC(osf_setitimer)
 #include "xlat/adjtimex_state.h"
 
 static int
-do_adjtimex(struct tcb *tcp, long addr)
+do_adjtimex(struct tcb *const tcp, const kernel_ureg_t addr)
 {
        if (print_timex(tcp, addr))
                return 0;