Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Cast PTRACE_LWP_GETPRIVATE to (void *) through (int...
details: https://anonhg.NetBSD.org/src/rev/e4a6132797c7
branches: trunk
changeset: 967875:e4a6132797c7
user: kamil <kamil%NetBSD.org@localhost>
date: Wed Dec 25 15:54:02 2019 +0000
description:
Cast PTRACE_LWP_GETPRIVATE to (void *) through (intptr_t)
Fixes sparc build.
diffstat:
sys/kern/sys_ptrace_common.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7c560afbcf67 -r e4a6132797c7 sys/kern/sys_ptrace_common.c
--- a/sys/kern/sys_ptrace_common.c Wed Dec 25 14:08:47 2019 +0000
+++ b/sys/kern/sys_ptrace_common.c Wed Dec 25 15:54:02 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_ptrace_common.c,v 1.74 2019/12/24 14:50:59 kamil Exp $ */
+/* $NetBSD: sys_ptrace_common.c,v 1.75 2019/12/25 15:54:02 kamil Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.74 2019/12/24 14:50:59 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_ptrace_common.c,v 1.75 2019/12/25 15:54:02 kamil Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@@ -807,7 +807,7 @@
}
#ifdef PTRACE_LWP_GETPRIVATE
- pls->pl_private = PTRACE_LWP_GETPRIVATE(l);
+ pls->pl_private = (void *)(intptr_t)PTRACE_LWP_GETPRIVATE(l);
#else
pls->pl_private = l->l_private;
#endif
Home |
Main Index |
Thread Index |
Old Index