commit 9910099b383e28a0a8b9b8c26ea99a5a2d77f5b3
parent 645a0547e01cdc2925889185d7777ef1ea4684e7
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sat, 28 Aug 2021 11:34:54 +0200
libc: Fix external declaration of _exitf
_ATEXIT_MAX is defined in stdlib.h and not all the files
where libc.h is included have that definition. The best
option is just to omit the size of the array in the
declaraton.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libc/libc.h b/src/libc/libc.h
@@ -54,5 +54,5 @@ extern int _daysmon[12];
extern char *_tzname[2];
extern struct tzone tzones[];
-extern void (*_exitf[_ATEXIT_MAX])(void);
+extern void (*_exitf[])(void);
extern unsigned _exitn;