File: z50_missing_prototypes.dpatch

package info (click to toggle)
ispell 3.1.20.0-4.4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,684 kB
  • ctags: 966
  • sloc: ansic: 8,374; makefile: 2,023; yacc: 1,711; lisp: 1,613; sh: 1,053; objc: 385; csh: 215; python: 112
file content (99 lines) | stat: -rw-r--r-- 2,375 bytes parent folder | download | duplicates (4)
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
$Id: z50_missing_prototypes.dpatch,v 1.2 2002/01/22 18:06:39 david Exp $

From: Doug Porter <dsp@debian.org>
Date: Tue, 22 Jan 2002 10:28:44 -0500
Sender: dsp@waterspout.com
Subject: Bug#130405: ispell: implicit declarations

Package: ispell
Version: 3.1.20-20
Tags: patch

Some functions are missing prototypes and this can lead to
significant trouble...  Here is a patch to fix that.


diff -Naur ispell-3.1.20.orig/correct.c ispell-3.1.20/correct.c
--- ispell-3.1.20.orig/correct.c	Thu Oct 12 19:04:06 1995
+++ ispell-3.1.20/correct.c	Tue Jan  8 19:39:47 2002
@@ -119,6 +119,7 @@
  */
 
 #include <ctype.h>
+#include <unistd.h>
 #include "config.h"
 #include "ispell.h"
 #include "proto.h"
diff -Naur ispell-3.1.20.orig/ispell.c ispell-3.1.20/ispell.c
--- ispell-3.1.20.orig/ispell.c	Tue Jan  8 19:42:27 2002
+++ ispell-3.1.20/ispell.c	Tue Jan  8 19:39:33 2002
@@ -132,8 +132,9 @@
 #include "proto.h"
 #include "msgs.h"
 #include "version.h"
-#include <ctype.h>
 #include <sys/stat.h>
+#include <ctype.h>
+#include <unistd.h>
 
 static void	usage P ((void));
 static void	initckch P ((char * wchars));
diff -Naur ispell-3.1.20.orig/lookup.c ispell-3.1.20/lookup.c
--- ispell-3.1.20.orig/lookup.c	Mon Jan 23 18:28:27 1995
+++ ispell-3.1.20/lookup.c	Tue Jan  8 19:40:48 2002
@@ -55,6 +55,8 @@
  *
  */
 
+#include <sys/types.h>
+#include <unistd.h>
 #include "config.h"
 #include "ispell.h"
 #include "proto.h"
diff -Naur ispell-3.1.20.orig/term.c ispell-3.1.20/term.c
--- ispell-3.1.20.orig/term.c	Wed Nov  2 18:44:28 1994
+++ ispell-3.1.20/term.c	Tue Jan  8 19:38:44 2002
@@ -64,22 +64,25 @@
 #include "ispell.h"
 #include "proto.h"
 #include "msgs.h"
 #include <signal.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 
 #ifdef __GLIBC__
 /* Use termios under at least glibc */
 #include <termios.h>
 #define USE_TERMIOS
 #ifndef USG
 #define USG
 #endif
 #else
 #ifdef USG
 #include <termio.h>
 #else
 #include <sgtty.h>
 #endif
 #endif
+#include <unistd.h>
 
 void		erase P ((void));
 void		move P ((int row, int col));
diff -Naur ispell-3.1.20.orig/tree.c ispell-3.1.20/tree.c
--- ispell-3.1.20.orig/tree.c	Mon Jan 23 18:28:28 1995
+++ ispell-3.1.20/tree.c	Tue Jan  8 19:41:07 2002
@@ -61,6 +61,7 @@
 
 #include <ctype.h>
 #include <errno.h>
+#include <unistd.h>
 #include "config.h"
 #include "ispell.h"
 #include "proto.h"


-- 
Doug Porter <dsp@waterspout.com>