diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-01-26 20:00:38 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-01-26 20:00:38 +0000 |
commit | 54415dcc5e880d223a0f75aed656bb6252815f17 (patch) | |
tree | 26b287c3884dc4249bb17d87f013465c596802e0 /lib/csu/common_elf/crtendS.c | |
parent | be164f9138e45f14d40de3c6906c9b6ff8b82da2 (diff) |
small clean-up: typedef to desambiguate const, prototypes...
ok drahn@, some time ago.
Diffstat (limited to 'lib/csu/common_elf/crtendS.c')
-rw-r--r-- | lib/csu/common_elf/crtendS.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/csu/common_elf/crtendS.c b/lib/csu/common_elf/crtendS.c index dd957d071fc..1137b450202 100644 --- a/lib/csu/common_elf/crtendS.c +++ b/lib/csu/common_elf/crtendS.c @@ -1,12 +1,13 @@ -/* $OpenBSD: crtendS.c,v 1.3 2004/01/08 14:59:15 drahn Exp $ */ +/* $OpenBSD: crtendS.c,v 1.4 2004/01/26 20:00:37 espie Exp $ */ /* $NetBSD: crtend.c,v 1.1 1997/04/16 19:38:24 thorpej Exp $ */ #include <sys/cdefs.h> #include "md_init.h" +#include "extern.h" -static void (*__CTOR_LIST__[1])(void) +static init_f __CTOR_LIST__[1] __attribute__((section(".ctors"))) = { (void *)0 }; /* XXX */ -static void (*__DTOR_LIST__[1])(void) +static init_f __DTOR_LIST__[1] __attribute__((section(".dtors"))) = { (void *)0 }; /* XXX */ MD_SECTION_EPILOGUE(".init"); |