From 46e896434eaadec54e799bed6742ac4c3656240a Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Wed, 4 May 2022 12:00:23 +0300 Subject: [PATCH] libc: Add room for one more exit function --- libs/libc/stdlib/atexit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/stdlib/atexit.h b/libs/libc/stdlib/atexit.h index 016a1d24d07f5..bf872ecad6e5f 100644 --- a/libs/libc/stdlib/atexit.h +++ b/libs/libc/stdlib/atexit.h @@ -40,7 +40,7 @@ # define CONFIG_SCHED_ONEXIT_MAX 1 #endif -#define _ATEXIT_MAX (CONFIG_SCHED_ATEXIT_MAX + CONFIG_SCHED_ONEXIT_MAX) +#define _ATEXIT_MAX (CONFIG_SCHED_ATEXIT_MAX + CONFIG_SCHED_ONEXIT_MAX + 1) /**************************************************************************** * Public Types