From 6d57a1a176004a7d8fc009cdcf760098f86e3263 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 16 Feb 2002 21:28:12 +0000 Subject: Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. --- lib/csu/c++/c++rt0.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/csu/c++') diff --git a/lib/csu/c++/c++rt0.c b/lib/csu/c++/c++rt0.c index 4e22ced6537..7219c32ca58 100644 --- a/lib/csu/c++/c++rt0.c +++ b/lib/csu/c++/c++rt0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: c++rt0.c,v 1.6 1999/02/01 17:02:47 pefo Exp $ */ +/* $OpenBSD: c++rt0.c,v 1.7 2002/02/16 21:27:20 millert Exp $ */ /* $NetBSD: c++rt0.c,v 1.6 1997/12/29 15:36:50 pk Exp $ */ /* @@ -48,18 +48,18 @@ * include a dummy local function in the set. This keeps references * to these symbols local to the shared object this module is linked to. */ -static void dummy __P((void)) { return; } +static void dummy(void) { return; } /* Note: this is "a.out" dependent. */ __asm(".stabs \"___CTOR_LIST__\",22,0,0,_dummy"); __asm(".stabs \"___DTOR_LIST__\",22,0,0,_dummy"); #endif -extern void (*__CTOR_LIST__[]) __P((void)); -extern void (*__DTOR_LIST__[]) __P((void)); +extern void (*__CTOR_LIST__[])(void); +extern void (*__DTOR_LIST__[])(void); -static void __dtors __P((void)); -static void __ctors __P((void)); +static void __dtors(void); +static void __ctors(void); static void __dtors() @@ -81,11 +81,11 @@ __ctors() } #if !defined(NATIVE_EXEC_ELF) -extern void __init __P((void)) asm(".init"); -extern void __fini __P((void)) asm(".fini"); +extern void __init(void) asm(".init"); +extern void __fini(void) asm(".fini"); #else -extern void __init __P((void)) __attribute__ ((section (".init"))); -extern void __fini __P((void)) __attribute__ ((section (".fini"))); +extern void __init(void) __attribute__ ((section (".init"))); +extern void __fini(void) __attribute__ ((section (".fini"))); #endif void -- cgit v1.2.3