From 5d03c0ab9c064018d530e22db6b8f261a4e649ba Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Sun, 28 Dec 2003 04:11:53 +0000 Subject: correct array initializer size to be [1], not [0] fixes gcc3 libstdc++ error ok espie, millert --- lib/csu/crtbeginS.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/csu/crtbeginS.c b/lib/csu/crtbeginS.c index 5cf453f40bf..da66081dae3 100644 --- a/lib/csu/crtbeginS.c +++ b/lib/csu/crtbeginS.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crtbeginS.c,v 1.3 2003/06/26 23:19:18 deraadt Exp $ */ +/* $OpenBSD: crtbeginS.c,v 1.4 2003/12/28 04:11:52 drahn Exp $ */ /* $NetBSD: crtbegin.c,v 1.1 1996/09/12 16:59:03 cgd Exp $ */ /* @@ -42,9 +42,9 @@ */ #include -static void (*__CTOR_LIST__[0])(void) +static void (*__CTOR_LIST__[1])(void) __attribute__((section(".ctors"))) = { (void *)-1 }; /* XXX */ -static void (*__DTOR_LIST__[0])(void) +static void (*__DTOR_LIST__[1])(void) __attribute__((section(".dtors"))) = { (void *)-1 }; /* XXX */ static void __dtors(void); -- cgit v1.2.3