diff options
author | 2003-12-28 04:11:52 +0000 | |
---|---|---|
committer | 2003-12-28 04:11:52 +0000 | |
commit | 9a845251fb75afabbdb340debe034f53221b5dad (patch) | |
tree | b049f97450293ccbf3a41a601a38f3babbe608d0 /lib/csu | |
parent | zap bizarre log() prototype. (diff) | |
download | wireguard-openbsd-9a845251fb75afabbdb340debe034f53221b5dad.tar.xz wireguard-openbsd-9a845251fb75afabbdb340debe034f53221b5dad.zip |
correct array initializer size to be [1], not [0] fixes gcc3 libstdc++ error
ok espie, millert
Diffstat (limited to 'lib/csu')
-rw-r--r-- | lib/csu/common_elf/crtbeginS.c | 6 | ||||
-rw-r--r-- | lib/csu/crtbeginS.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/csu/common_elf/crtbeginS.c b/lib/csu/common_elf/crtbeginS.c index 5cf453f40bf..da66081dae3 100644 --- a/lib/csu/common_elf/crtbeginS.c +++ b/lib/csu/common_elf/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); 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); |