Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/sh5/sys Make it plain to the compiler that __s...
details: https://anonhg.NetBSD.org/src/rev/dafbcc294d99
branches: trunk
changeset: 536035:dafbcc294d99
user: scw <scw%NetBSD.org@localhost>
date: Wed Sep 04 21:44:07 2002 +0000
description:
Make it plain to the compiler that __sigtramp_sigcontext_1() really is
an external function, instead of an array. Otherwise, it won't set
bit 0 of the trampoline's address to indicate SHmedia mode.
diffstat:
lib/libc/arch/sh5/sys/__sigaction14_sigtramp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 94cb3bdfea7f -r dafbcc294d99 lib/libc/arch/sh5/sys/__sigaction14_sigtramp.c
--- a/lib/libc/arch/sh5/sys/__sigaction14_sigtramp.c Wed Sep 04 19:19:07 2002 +0000
+++ b/lib/libc/arch/sh5/sys/__sigaction14_sigtramp.c Wed Sep 04 21:44:07 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: __sigaction14_sigtramp.c,v 1.1 2002/07/11 14:23:05 scw Exp $ */
+/* $NetBSD: __sigaction14_sigtramp.c,v 1.2 2002/09/04 21:44:07 scw Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
int
__sigaction14(int sig, const struct sigaction *act, struct sigaction *oact)
{
- extern int __sigtramp_sigcontext_1[];
+ extern void __sigtramp_sigcontext_1(void);
/*
* Right here we should select the SA_SIGINFO trampoline
@@ -54,5 +54,5 @@
*/
return (__sigaction_sigtramp(sig, act, oact,
- __sigtramp_sigcontext_1, 1));
+ (void *)__sigtramp_sigcontext_1, 1));
}
Home |
Main Index |
Thread Index |
Old Index