diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2003-12-28 04:11:53 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2003-12-28 04:11:53 +0000 |
commit | 5d03c0ab9c064018d530e22db6b8f261a4e649ba (patch) | |
tree | 2388759ca22bbd2ab80249de4a1c5bb2bfbc5b55 /lib/csu/crtbeginS.c | |
parent | 0b443c3ad894ebd5e803a616e15d1a654b54f444 (diff) |
correct array initializer size to be [1], not [0] fixes gcc3 libstdc++ error
ok espie, millert
Diffstat (limited to 'lib/csu/crtbeginS.c')
-rw-r--r-- | lib/csu/crtbeginS.c | 6 |
1 files 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 <stdlib.h> -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); |