File: missing-prototypes.patch

package info (click to toggle)
ng 1.5~beta1-14
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,164 kB
  • sloc: ansic: 44,018; asm: 3,150; sh: 2,539; cpp: 1,234; makefile: 578
file content (140 lines) | stat: -rw-r--r-- 2,869 bytes parent folder | download | duplicates (2)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
Author: Andreas Beckmann <anbe@debian.org>
Description: fix building with -Werror=implicit-function-declaration

--- a/dir.c
+++ b/dir.c
@@ -58,6 +58,8 @@
 extern VOID makepath pro((char *dname, char *fname, int len)); /* file.c */
 #endif
 
+int rchdir(char *dir);
+
 char	*startdir = NULL;
 char	*wdir;
 
--- a/sys/unix/fileio.c
+++ b/sys/unix/fileio.c
@@ -57,6 +57,8 @@ extern	char	*getenv(), *strncpy();
 #endif
 char	*adjustname();
 
+VOID kputc(int c, FILE *fp, int kfio);
+
 /*
  * Open a file for reading.
  */
@@ -298,6 +300,7 @@ dirinit()
     }
 }
 
+int
 rchdir(dir)
 char *dir;
 {
--- a/sys/unix/spawn.c
+++ b/sys/unix/spawn.c
@@ -38,6 +38,13 @@
 #ifdef	HAVE_SYS_WAIT_H
 #include	<sys/wait.h>
 #endif
+#ifdef	HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+
+int ttraw(void);
+int ttcooked(void);
+int refresh(int f, int n);
 
 /* some system don't have job-control even if SIGTSTP is defined... */
 #ifdef	UNDEF_SIGTSTP
--- a/sys/unix/ttyio.c
+++ b/sys/unix/ttyio.c
@@ -50,6 +50,7 @@
 #include	"def.h"
 
 #include	<sys/types.h>
+#include <term.h>
 #ifdef	HAVE_TERMIOS_H
 #include	<termios.h>
 #else
@@ -70,6 +71,12 @@
 #include <sys/time.h>
 #endif
 
+int ttraw(void);
+int ttcooked(void);
+int refresh(int f, int n);
+void setttysize(void);
+VOID canna_width(void);
+
 #ifdef	ADDFUNC	/* 90.02.14  by S.Yoshida */
 #include	<signal.h>		/* 90.02.13: For SIGWINCH.	*/
 #include	<sys/ioctl.h>		/* 00.04.03: amura		*/
@@ -170,6 +177,7 @@ ttopen() {
  * mg expects.	Thus, stty changes done while spawncli() is in effect
  * will be reflected in mg.
  */
+int
 ttraw() {
 #if defined(HAVE_TERMIO_H)||defined(HAVE_TERMIOS_H)
     if (ttyactivep)
@@ -296,6 +304,7 @@ ttclose() {
  * in anticipation of exiting or suspending the editor.
  */
 
+int
 ttcooked() {
 #if defined(HAVE_TERMIO_H)||defined(HAVE_TERMIOS_H)
     if(!ttysavedp || !ttyactivep)
@@ -414,6 +423,7 @@ int	c;
 /*
  * set the tty size. Functionized for 43BSD.
  */
+void
 setttysize() {
 #ifdef	TIOCGWINSZ
     if (ioctl(0, TIOCGWINSZ, (char *) &winsize) != -1) {
--- a/window.c
+++ b/window.c
@@ -55,7 +55,8 @@ reposition(f, n)
  * everything will get fixed!
  */
 /*ARGSUSED*/
-refresh(f, n)
+int
+refresh(int f, int n)
 {
 	register WINDOW *wp;
 	register int	oldnrow;
--- a/sys/default/tty.c
+++ b/sys/default/tty.c
@@ -38,6 +38,11 @@
 
 #include	"config.h"	/* 90.12.20  by S.Yoshida */
 #include	"def.h"
+#include 	<term.h>
+
+void ttwindow(int top, int bot);
+int charcost (char *s);
+void setttysize(void);
 
 #define BEL	0x07			/* BEL character.		*/
 
@@ -358,7 +363,8 @@ ttdell(row, bot, nchunk)
  * moves the cursor).
  *
  */
-ttwindow(top, bot)
+void
+ttwindow(int top, int bot)
 {
 	if (CS && (tttop!=top || ttbot!=bot)) {
 		putpad(tgoto(CS, bot, top), nrow - ttrow);
@@ -447,6 +453,7 @@ char c;
 }
 
 /* calculate the cost of doing string s */
+int
 charcost (s) char *s; {
 	cci = 0;