https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4213c70e2e9dbf4764be3…
commit 4213c70e2e9dbf4764be30c6a35c3d3c930e6943
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Mon Jun 1 21:29:02 2020 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sat Jun 27 14:35:32 2020 +0200
[CRTDLL][CRT] Remove remnant declaration, silence cppcheck false positive.
* _atexit_cleanup is no longer used
* Fix cppcheck 'pointerSize' warning
---
dll/win32/crtdll/dllmain.c | 1 -
sdk/lib/crt/stdlib/atexit.c | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/dll/win32/crtdll/dllmain.c b/dll/win32/crtdll/dllmain.c
index 41e481da858..8d6af8c69b2 100644
--- a/dll/win32/crtdll/dllmain.c
+++ b/dll/win32/crtdll/dllmain.c
@@ -32,7 +32,6 @@ extern void __getmainargs( int *argc, char ***argv, char ***envp,
extern int BlockEnvToEnvironA(void);
extern int BlockEnvToEnvironW(void);
extern void FreeEnvironment(char **environment);
-extern void _atexit_cleanup(void);
extern unsigned int _osver;
extern unsigned int _winminor;
diff --git a/sdk/lib/crt/stdlib/atexit.c b/sdk/lib/crt/stdlib/atexit.c
index 6ab8942b333..49247baddc7 100644
--- a/sdk/lib/crt/stdlib/atexit.c
+++ b/sdk/lib/crt/stdlib/atexit.c
@@ -69,7 +69,7 @@ _onexit_t CDECL _onexit(_onexit_t func)
{
_onexit_t *newtable;
TRACE("expanding table\n");
- newtable = calloc(atexit_table_size + 32, sizeof(void *));
+ newtable = calloc(atexit_table_size + 32, sizeof(_onexit_t));
if (!newtable)
{
TRACE("failed!\n");