dbz.c, dbzmain.c: Include stdlib.h.
authorZack Weinberg <zack@wolery.cumb.org>
Fri, 28 Jan 2000 01:21:49 +0000 (01:21 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 28 Jan 2000 01:21:49 +0000 (01:21 +0000)
* 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

libio/ChangeLog
libio/dbz/dbz.c
libio/dbz/dbzmain.c

index bf60feef98bfedde97013d553d991afd9ca8166a..f4632e397e0e037572663188f385017b8dc02c80 100644 (file)
@@ -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.
index 7489a09d15ae5ed5ecc636bdc0eda62de40e01a5..417ecde6685b277f79d06b5461a0b7d0114a4e94 100644 (file)
@@ -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();
index f65e2778f790fd99a271b52de9e12b2812759528..f03ed59f5f47afdbbffa246e267e2703a09f6401 100644 (file)
@@ -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
  */