summaryrefslogtreecommitdiff
path: root/lib/csu/c++
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
commit6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch)
treeee423c619fad03813234b9362694a17f3a638f0b /lib/csu/c++
parentc707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff)
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.
Diffstat (limited to 'lib/csu/c++')
-rw-r--r--lib/csu/c++/c++rt0.c20
1 files changed, 10 insertions, 10 deletions
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