summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-09-12 13:46:32 +0000
committerstefanf <stefanf@FreeBSD.org>2005-09-12 13:46:32 +0000
commit56b9efc0f3f0ebf8a9c7f70d3c9c3fb47f86c1d6 (patch)
tree1802ab3510e718e6985f6769048767b9b8cf797a /lib/libc/stdlib
parenta4b72ef0403c67e2d88c69ed60306bcc7406dd76 (diff)
downloadFreeBSD-src-56b9efc0f3f0ebf8a9c7f70d3c9c3fb47f86c1d6.zip
FreeBSD-src-56b9efc0f3f0ebf8a9c7f70d3c9c3fb47f86c1d6.tar.gz
Move the declaration of __cleanup to libc_private.h as it is used in both
stdio/ and stdlib/. Don't define __cleanup twice.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/abort.c2
-rw-r--r--lib/libc/stdlib/exit.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdlib/abort.c b/lib/libc/stdlib/abort.c
index 36cd15b..468a9bf 100644
--- a/lib/libc/stdlib/abort.c
+++ b/lib/libc/stdlib/abort.c
@@ -45,7 +45,7 @@ __FBSDID("$FreeBSD$");
#include <pthread.h>
#include "un-namespace.h"
-void (*__cleanup)();
+#include "libc_private.h"
void
abort()
diff --git a/lib/libc/stdlib/exit.c b/lib/libc/stdlib/exit.c
index 83abdbd..cafb127 100644
--- a/lib/libc/stdlib/exit.c
+++ b/lib/libc/stdlib/exit.c
@@ -41,9 +41,11 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <unistd.h>
#include "un-namespace.h"
+
#include "atexit.h"
+#include "libc_private.h"
-void (*__cleanup)();
+void (*__cleanup)(void);
/*
* This variable is zero until a process has created a thread.
OpenPOWER on IntegriCloud