Description: Fix missing/conflicting function declarations
Author: Bastian Germann <bage@debian.org>
Bug-Debian: https://bugs.debian.org/1075226
---
--- a/cpp/cpp.c
+++ b/cpp/cpp.c
@@ -545,7 +545,7 @@
 }
 
 static void 
-unchget(ch)
+unchget(int ch)
 {
 #if CPP_DEBUG
    fprintf(stderr, "\b", ch);
--- a/ld/dumps.c
+++ b/ld/dumps.c
@@ -7,6 +7,7 @@
 #include "obj.h"
 #include "type.h"
 #include "globvar.h"
+#include <string.h>
 
 /* print list of modules and whether they are loaded */
 
--- a/unproto/Makefile
+++ b/unproto/Makefile
@@ -83,7 +83,7 @@
 
 CFLAGS	= -O
 LDFLAGS =
-CCFLAGS = $(CFLAGS) -w $(PIPE) $(SKIP) $(BELL) $(MAP) $(ALIAS) -DREOPEN
+CCFLAGS = $(CFLAGS) -w $(PIPE) $(SKIP) $(BELL) $(MAP) $(ALIAS) -DREOPEN -Wno-error=implicit-function-declaration
 
 #CFLAGS	= -O $(PIPE) $(SKIP) $(BELL) $(MAP) $(ALIAS) -p -Dstatic=
 #CFLAGS	= -g $(PIPE) $(SKIP) $(BELL) $(MAP) $(ALIAS) -DDEBUG
--- a/unproto/symbol.c
+++ b/unproto/symbol.c
@@ -42,6 +42,7 @@
 
 /* C library */
 
+#include <string.h>
 extern char *strcpy();
 extern char *malloc();
 
--- a/unproto/tok_class.c
+++ b/unproto/tok_class.c
@@ -49,6 +49,7 @@
 /* C library */
 
 #include <stdio.h>
+#include <string.h>
 
 extern char *strcpy();
 extern long time();
--- a/unproto/tok_io.c
+++ b/unproto/tok_io.c
@@ -79,11 +79,11 @@
 /* C library */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <ctype.h>
 
 extern char *strchr();
-extern char *malloc();
-extern char *realloc();
 extern char *strcpy();
 
 /* Application-specific stuff */
@@ -189,7 +189,7 @@
 
 /* do_control - parse control line */
 
-static int do_control()
+static void do_control()
 {
     struct token *t;
     int     line;
--- a/unproto/unproto.c
+++ b/unproto/unproto.c
@@ -137,6 +137,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <stdio.h>
+#include <string.h>
 #include <errno.h>
 
 extern void exit();
