Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch/arm Cast pointer to int via intptr_t



details:   https://anonhg.NetBSD.org/src/rev/bc71e7f02aff
branches:  trunk
changeset: 350651:bc71e7f02aff
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jan 15 11:46:21 2017 +0000

description:
Cast pointer to int via intptr_t

diffstat:

 sys/compat/linux/arch/arm/linux_systrace_args.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r bde57d746b88 -r bc71e7f02aff sys/compat/linux/arch/arm/linux_systrace_args.c
--- a/sys/compat/linux/arch/arm/linux_systrace_args.c   Sun Jan 15 07:46:57 2017 +0000
+++ b/sys/compat/linux/arch/arm/linux_systrace_args.c   Sun Jan 15 11:46:21 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_systrace_args.c,v 1.4 2017/01/13 06:18:31 christos Exp $ */
+/* $NetBSD: linux_systrace_args.c,v 1.5 2017/01/15 11:46:21 martin Exp $ */
 
 /*
  * System call argument to DTrace register array converstion.
@@ -302,7 +302,7 @@
        case 48: {
                const struct linux_sys_signal_args *p = params;
                iarg[0] = SCARG(p, signum); /* int */
-               iarg[1] = SCARG(p, handler); /* linux_handler_t */
+               iarg[1] = (intptr_t) SCARG(p, handler); /* linux_handler_t */
                *n_args = 2;
                break;
        }



Home | Main Index | Thread Index | Old Index