aboutsummaryrefslogtreecommitdiff
path: root/libio/dbz
diff options
context:
space:
mode:
authorZack Weinberg <zack@wolery.cumb.org>2000-01-28 01:21:49 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-01-28 01:21:49 +0000
commitd14cfa2af86e03229523f55728f2467e1471dadf (patch)
treee6532028780a0845f0423c8e7c5bddf2a869b51f /libio/dbz
parentc65ede6789ca5ab1121088e12caa0f39bca68c3c (diff)
downloadgcc-d14cfa2af86e03229523f55728f2467e1471dadf.zip
gcc-d14cfa2af86e03229523f55728f2467e1471dadf.tar.gz
gcc-d14cfa2af86e03229523f55728f2467e1471dadf.tar.bz2
dbz.c, dbzmain.c: Include stdlib.h.
* 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.) From-SVN: r31659
Diffstat (limited to 'libio/dbz')
-rw-r--r--libio/dbz/dbz.c11
-rw-r--r--libio/dbz/dbzmain.c3
2 files changed, 2 insertions, 12 deletions
diff --git a/libio/dbz/dbz.c b/libio/dbz/dbz.c
index 7489a09..417ecde 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 f65e277..f03ed59 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
*/