From 806f6f11613e674b2a633e84b3b05c3640230e72 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Mon, 16 Apr 2007 03:20:42 +0000 Subject: [PATCH] fix a bug in _exit() that called the _IO_cleanup routine as if it was a function pointer, which it isn't. The mistake was probably made because there appears to be multiple stdio implementations in the tree (BSD and glibc) so it's easy to look at the wrong code. Perhaps we should clean that up. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20720 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/unistd/_exit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/system/libroot/posix/unistd/_exit.c b/src/system/libroot/posix/unistd/_exit.c index f243fe6041..cd22e1bb4a 100644 --- a/src/system/libroot/posix/unistd/_exit.c +++ b/src/system/libroot/posix/unistd/_exit.c @@ -8,8 +8,7 @@ #include -extern void (*_IO_cleanup)(void); - +extern void _IO_cleanup(void); void _exit(int status)