ldt: change address argument type from long to kernel_ureg_t

* defs.h [HAVE_STRUCT_USER_DESC] (print_user_desc): Change address
argument type from long to kernel_ureg_t.
* ldt.c [HAVE_STRUCT_USER_DESC] (print_user_desc): Likewise.
This commit is contained in:
2016-12-21 18:21:26 +00:00
parent 1007f7a276
commit 98f8b95b0f
2 changed files with 2 additions and 2 deletions

2
defs.h
View File

@@ -821,7 +821,7 @@ extern void print_itimerval32(struct tcb *tcp, long);
#endif #endif
#ifdef HAVE_STRUCT_USER_DESC #ifdef HAVE_STRUCT_USER_DESC
extern void print_user_desc(struct tcb *, long); extern void print_user_desc(struct tcb *, kernel_ureg_t addr);
#endif #endif
/* Strace log generation machinery. /* Strace log generation machinery.

2
ldt.c
View File

@@ -38,7 +38,7 @@
# include <asm/ldt.h> # include <asm/ldt.h>
void void
print_user_desc(struct tcb *tcp, const long addr) print_user_desc(struct tcb *const tcp, const kernel_ureg_t addr)
{ {
struct user_desc desc; struct user_desc desc;