File: function-declaration.patch

package info (click to toggle)
linux86 0.16.21-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,072 kB
  • sloc: ansic: 66,757; asm: 6,154; makefile: 1,374; sh: 703
file content (91 lines) | stat: -rw-r--r-- 1,890 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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();