Fri Jan 11 23:28:36 2013 UTC ()
Use void and add some missing includes.


(joerg)
diff -r1.6 -r1.7 pkgsrc/misc/lile/distinfo
diff -r1.6 -r1.7 pkgsrc/misc/lile/patches/patch-aa

cvs diff -r1.6 -r1.7 pkgsrc/misc/lile/distinfo (expand / switch to unified diff)

--- pkgsrc/misc/lile/distinfo 2005/11/10 18:03:21 1.6
+++ pkgsrc/misc/lile/distinfo 2013/01/11 23:28:36 1.7
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.6 2005/11/10 18:03:21 joerg Exp $ 1$NetBSD: distinfo,v 1.7 2013/01/11 23:28:36 joerg Exp $
2 2
3SHA1 (lile-2.0.tar.z) = 8969acd0de5599fee8fb2d1c49c4804f5ae25156 3SHA1 (lile-2.0.tar.z) = 8969acd0de5599fee8fb2d1c49c4804f5ae25156
4RMD160 (lile-2.0.tar.z) = 3aac03a4a9fccf3aac9155ab02592c4a5571cb8a 4RMD160 (lile-2.0.tar.z) = 3aac03a4a9fccf3aac9155ab02592c4a5571cb8a
5Size (lile-2.0.tar.z) = 22901 bytes 5Size (lile-2.0.tar.z) = 22901 bytes
6SHA1 (patch-aa) = 6e1357bacb2a078685c4ed78cc54af8c92a63493 6SHA1 (patch-aa) = 605f487a17e2c4997a947bd1ced7d305e808a08d

cvs diff -r1.6 -r1.7 pkgsrc/misc/lile/patches/patch-aa (expand / switch to unified diff)

--- pkgsrc/misc/lile/patches/patch-aa 2005/11/10 18:03:21 1.6
+++ pkgsrc/misc/lile/patches/patch-aa 2013/01/11 23:28:36 1.7
@@ -1,42 +1,53 @@ @@ -1,42 +1,53 @@
1$NetBSD: patch-aa,v 1.6 2005/11/10 18:03:21 joerg Exp $ 1$NetBSD: patch-aa,v 1.7 2013/01/11 23:28:36 joerg Exp $
2 2
3--- ile.c.orig 1993-06-09 03:12:33.000000000 +0000 3--- ile.c.orig 1993-06-09 03:12:33.000000000 +0000
4+++ ile.c 4+++ ile.c
5@@ -2,6 +2,7 @@ 5@@ -2,6 +2,9 @@
6 /* Copyright message is near the bottom of the file */ 6 /* Copyright message is near the bottom of the file */
7  7
8 #include "config.h" 8 #include "config.h"
9+#include <signal.h> 9+#include <signal.h>
 10+#include <ctype.h>
 11+#include <unistd.h>
10  12
11 /* #define DEBUG /**/ 13 /* #define DEBUG /**/
12  14
13@@ -43,7 +44,7 @@ void setup_action_table(); 15@@ -43,7 +46,7 @@ void setup_action_table();
14 #include <stdio.h> 16 #include <stdio.h>
15 #include <fcntl.h> 17 #include <fcntl.h>
16 #include <sgtty.h> 18 #include <sgtty.h>
17-#include <signal.h> 19-#include <signal.h>
18+#include <stdlib.h> 20+#include <stdlib.h>
19 #include <string.h> 21 #include <string.h>
20 #include <strings.h> 22 #include <strings.h>
21 #include <pwd.h> 23 #include <pwd.h>
22@@ -51,7 +52,7 @@ void setup_action_table(); 24@@ -51,7 +54,7 @@ void setup_action_table();
23 #include <errno.h> 25 #include <errno.h>
24 #include <sys/ioctl.h> 26 #include <sys/ioctl.h>
25 #include <sys/types.h> 27 #include <sys/types.h>
26-#include <sys/dir.h> 28-#include <sys/dir.h>
27+#include <dirent.h> 29+#include <dirent.h>
28 #include <sys/file.h> 30 #include <sys/file.h>
29 #include <sys/time.h> 31 #include <sys/time.h>
30 #include <sys/wait.h> 32 #include <sys/wait.h>
31@@ -61,11 +62,6 @@ void setup_action_table(); 33@@ -61,11 +64,6 @@ void setup_action_table();
32 */ 34 */
33  35
34 /* Definitions of system stuff. */ 36 /* Definitions of system stuff. */
35-extern int errno; 37-extern int errno;
36- 38-
37-long lseek(); 39-long lseek();
38-char *malloc(); 40-char *malloc();
39-char *realloc(); 41-char *realloc();
40 time_t time(); 42 time_t time();
41  43
42 #ifndef TRUE 44 #ifndef TRUE
 45@@ -312,7 +310,7 @@ void handle_child() {
 46 getpty opens a pty, storing file descriptors in pty and tty.
 47 It trys pairs in order until it finds a pair that is not in use.
 48 */
 49-getpty(pty, tty) int *pty; int *tty; {
 50+static void getpty(pty, tty) int *pty; int *tty; {
 51 int devindex;
 52 int letter;
 53