File macutils-implicit_decl.diff of Package macutils

--- binhex/binhex.c
+++ binhex/binhex.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <getopt.h>
 #include "../fileio/machdr.h"
 #include "../fileio/rdfile.h"
 #include "../fileio/rdfileopt.h"
--- binhex/dofile.c
+++ binhex/dofile.c
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "../fileio/machdr.h"
 #include "../fileio/rdfile.h"
 
--- comm/frommac.c
+++ comm/frommac.c
@@ -1,4 +1,6 @@
 #include <stdio.h>
+#include <string.h>
+#include <getopt.h>
 #include "comm.h"
 #include "../util/patchlevel.h"
 #include "../fileio/machdr.h"
--- comm/tomac.c
+++ comm/tomac.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <getopt.h>
 #include "comm.h"
 #include "../fileio/machdr.h"
 #include "../fileio/rdfile.h"
--- comm/tty.c
+++ comm/tty.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <signal.h>
+#include <unistd.h>
 #ifndef TERMIOS_H
 #include <sgtty.h>
 #else /* TERMIOS_H */
--- fileio/rdfile.c
+++ fileio/rdfile.c
@@ -3,6 +3,9 @@
 #include <sys/types.h>
 #endif /* TYPES_H */
 #include <sys/stat.h>
+#include <string.h>
+#include <stdlib.h>
+#include <unistd.h>
 #include "machdr.h"
 #include "rdfile.h"
 #include "rdfileopt.h"
@@ -42,12 +45,12 @@
 #define RSRC_FORMAT	2
 #define UNIX_FORMAT	3
 
-extern char *malloc();
+/* extern char *malloc();
 extern char *realloc();
 extern char *strcpy();
 extern char *strncpy();
 extern char *strcat();
-extern void exit();
+extern void exit(); */
 
 static void check_files();
 static void read_file();
--- fileio/wrfile.c
+++ fileio/wrfile.c
@@ -4,6 +4,8 @@
 #include <sys/stat.h>
 #include <ctype.h>
 #include <stdio.h>
+#include <string.h>
+#include <unistd.h>
 #include "machdr.h"
 #include "wrfile.h"
 #include "wrfileopt.h"
@@ -35,12 +37,12 @@
 #define MACI 9
 #endif /* SCAN */
 
-extern char *malloc();
-extern char *realloc();
-extern char *strcpy();
-extern char *strncpy();
-extern char *strcat();
-extern void exit();
+/* extern char *malloc();
+   extern char *realloc();
+   extern char *strcpy();
+   extern char *strncpy();
+   extern char *strcat();
+   extern void exit(); */
 
 #ifdef UNDEF /* Do not declare sprintf; not portable (but lint will complain) */
 char *sprintf();
--- hexbin/hexbin.c
+++ hexbin/hexbin.c
@@ -2,6 +2,7 @@
 #include <sys/types.h>
 #endif /* TYPES_H */
 #include <sys/stat.h>
+#include <getopt.h>
 #include "globals.h"
 #include "crc.h"
 #include "readline.h"
--- macunpack/bin.c
+++ macunpack/bin.c
@@ -1,3 +1,4 @@
+#include <string.h>
 #include "macunpack.h"
 #ifdef BIN
 #include "globals.h"
--- macunpack/dd.c
+++ macunpack/dd.c
@@ -1,3 +1,4 @@
+#include <string.h>
 #include "macunpack.h"
 #ifdef DD
 #include "globals.h"
@@ -9,10 +10,10 @@
 #include "../util/masks.h"
 #include "../util/util.h"
 
-extern char *malloc();
-extern char *realloc();
-extern char *strcpy();
-extern char *strncpy();
+/* extern char *malloc();
+   extern char *realloc();
+   extern char *strcpy();
+   extern char *strncpy(); */
 extern void cpt_wrfile1();
 extern void core_compress();
 extern void de_compress();
--- macunpack/dia.c
+++ macunpack/dia.c
@@ -1,3 +1,5 @@
+#include <string.h>
+#include <stdlib.h>
 #include "macunpack.h"
 #ifdef DIA
 #include "globals.h"
@@ -9,8 +11,8 @@
 #include "../fileio/kind.h"
 #include "../util/util.h"
 
-extern char *malloc();
-extern char *realloc();
+/* extern char *malloc();
+   extern char *realloc(); */
 
 static unsigned char *dia_archive;
 static int dia_archive_size;
--- macunpack/lzc.c
+++ macunpack/lzc.c
@@ -1,3 +1,4 @@
+#include <string.h>
 #include "macunpack.h"
 #ifdef LZC
 #include "globals.h"
--- macunpack/lzh.c
+++ macunpack/lzh.c
@@ -1,3 +1,5 @@
+#include <string.h>
+#include <malloc.h>
 #include "macunpack.h"
 #ifdef LZH
 #include "globals.h"
@@ -17,8 +19,8 @@
 #define LZSMASK		4095
 #define LZBUFFSIZE	8192	/* Max of above buffsizes */
 
-extern char *malloc();
-extern char *realloc();
+/* extern char *malloc();
+   extern char *realloc(); */
 extern void de_lzah();
 extern unsigned char (*lzah_getbyte)();
 extern void de_lzh();
--- macunpack/macbinary.c
+++ macunpack/macbinary.c
@@ -1,3 +1,4 @@
+#include <string.h>
 #include "macunpack.h"
 #include "globals.h"
 #include "../fileio/machdr.h"
--- macunpack/macunpack.c
+++ macunpack/macunpack.c
@@ -1,3 +1,4 @@
+#include <getopt.h>
 #include "macunpack.h"
 #include "globals.h"
 #include "../util/patchlevel.h"
--- macunpack/pit.c
+++ macunpack/pit.c
@@ -1,3 +1,4 @@
+#include <string.h>
 #include "macunpack.h"
 #ifdef PIT
 #include "../fileio/wrfile.h"
--- macunpack/sit.c
+++ macunpack/sit.c
@@ -1,3 +1,4 @@
+#include <string.h>
 #include "macunpack.h"
 #ifdef SIT
 #include "globals.h"
--- macunpack/stf.c
+++ macunpack/stf.c
@@ -1,3 +1,4 @@
+#include <string.h>
 #include "macunpack.h"
 #ifdef STF
 #include "stf.h"
--- macunpack/zma.c
+++ macunpack/zma.c
@@ -1,3 +1,5 @@
+#include <string.h>
+#include <malloc.h>
 #include "macunpack.h"
 #ifdef ZMA
 #include "globals.h"
@@ -9,8 +11,8 @@
 #include "../util/masks.h"
 #include "../util/util.h"
 
-extern char *malloc();
-extern char *realloc();
+/* extern char *malloc();
+   extern char *realloc(); */
 extern void de_lzh();
 
 /* We do allow for possible backpointing, so we allocate the archive in core */
--- mixed/macsave.c
+++ mixed/macsave.c
@@ -1,3 +1,4 @@
+#include <getopt.h>
 #include "globals.h"
 #include "../util/patchlevel.h"
 #include "../fileio/wrfile.h"
--- mixed/macstream.c
+++ mixed/macstream.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <getopt.h>
 #include "../fileio/machdr.h"
 #include "../fileio/rdfile.h"
 #include "../fileio/rdfileopt.h"
--- util/util.c
+++ util/util.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <unistd.h>
 #include "../fileio/fileglob.h"
 #include "masks.h"
 #include "util.h"
openSUSE Build Service is sponsored by