From 29889807a297f43e4f8d35891a1af1ffe155e690 Mon Sep 17 00:00:00 2001 From: zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Fri, 28 Jan 2000 01:21:49 +0000 Subject: [PATCH] * dbz/dbz.c, dbz/dbzmain.c: Include stdlib.h. Don't declare malloc, calloc, free, atol, atoi, or errno. (errno.h was already being included.) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31659 138bc75d-0d04-0410-961f-82ee72b054a4 --- libio/ChangeLog | 6 ++++++ libio/dbz/dbz.c | 11 +---------- libio/dbz/dbzmain.c | 3 +-- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/libio/ChangeLog b/libio/ChangeLog index bf60feef98bf..f4632e397e0e 100644 --- a/libio/ChangeLog +++ b/libio/ChangeLog @@ -1,3 +1,9 @@ +2000-01-27 Zack Weinberg <zack@wolery.cumb.org> + + * dbz/dbz.c, dbz/dbzmain.c: Include stdlib.h. Don't declare + malloc, calloc, free, atol, atoi, or errno. (errno.h was + already being included.) + 2000-01-12 Fred Fish <fnf@be.com> * configure.in (*-*-beos*): Recognize. diff --git a/libio/dbz/dbz.c b/libio/dbz/dbz.c index 7489a09d15ae..417ecde6685b 100644 --- a/libio/dbz/dbz.c +++ b/libio/dbz/dbz.c @@ -27,9 +27,7 @@ if the incore facility is used. #include <string.h> #include <ctype.h> #include <errno.h> -#ifndef __STDC__ -extern int errno; -#endif +#include <stdlib.h> #include <dbz.h> /* @@ -302,13 +300,6 @@ static int debug; /* controlled by dbzdebug() */ #define DEBUG(args) ; #endif -/* externals used */ -extern char *malloc(); -extern char *calloc(); -extern void free(); /* ANSI C; some old implementations say int */ -extern int atoi(); -extern long atol(); - /* misc. forwards */ static long hash(); static void crcinit(); diff --git a/libio/dbz/dbzmain.c b/libio/dbz/dbzmain.c index f65e2778f790..f03ed59f5f47 100644 --- a/libio/dbz/dbzmain.c +++ b/libio/dbz/dbzmain.c @@ -8,6 +8,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <string.h> +#include <stdlib.h> #include <dbz.h> #ifdef FUNNYSEEKS @@ -74,8 +75,6 @@ extern char *rfc822ize(); #define rfc822ize(n) (n) #endif -extern char *malloc(); - /* - main - parse arguments and handle options */ -- GitLab