From 9a43926970e78fd809a8f1c327c8d7b1010610e5 Mon Sep 17 00:00:00 2001 From: Daniel Reinhold Date: Fri, 25 Oct 2002 19:25:50 +0000 Subject: [PATCH] removed extra declarations now that stdlib.h is fixed git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1660 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/stdlib/abs.c | 7 +------ src/kernel/libroot/posix/stdlib/div.c | 8 +------- src/kernel/libroot/posix/stdlib/exit.c | 8 -------- 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/kernel/libroot/posix/stdlib/abs.c b/src/kernel/libroot/posix/stdlib/abs.c index 7c60ed8491..4eb885965b 100644 --- a/src/kernel/libroot/posix/stdlib/abs.c +++ b/src/kernel/libroot/posix/stdlib/abs.c @@ -14,12 +14,7 @@ * */ - -// ToDo: these are supposed to be declared in -// - - - - - - - - - - - - - - - -int abs(int); -long labs(long); -// - - - - - - - - - - - - - - - +#include int diff --git a/src/kernel/libroot/posix/stdlib/div.c b/src/kernel/libroot/posix/stdlib/div.c index bbd73d6f91..2d49b39f46 100644 --- a/src/kernel/libroot/posix/stdlib/div.c +++ b/src/kernel/libroot/posix/stdlib/div.c @@ -14,13 +14,7 @@ * */ - -// ToDo: these are supposed to be declared in -// - - - - - - - - - - - - - - - -#include -div_t div(int, int); -ldiv_t ldiv(long, long); -// - - - - - - - - - - - - - - - +#include div_t diff --git a/src/kernel/libroot/posix/stdlib/exit.c b/src/kernel/libroot/posix/stdlib/exit.c index e5ca94d4cd..057ef03525 100644 --- a/src/kernel/libroot/posix/stdlib/exit.c +++ b/src/kernel/libroot/posix/stdlib/exit.c @@ -23,14 +23,6 @@ // ToDo: move this puppy to a more standard location #include "../stdio/local.h" -// ToDo: these are supposed to be declared in -// - - - - - - - - - - - - - - - -#define EXIT_SUCCESS 0 -#define EXIT_FAILURE 1 -void abort(void); -int atexit(void (*func)(void)); -// - - - - - - - - - - - - - - - - static void (*_Exit_Stack[ATEXIT_MAX])(void) = {0};