summaryrefslogtreecommitdiff
path: root/mgetty/mgetty-1.1.30/06-pending-contrib_g3tolj.c
blob: d0ab83fe84aa21928c72b4d86857e8ce270de5ca (plain)
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
--- mgetty-1.1.27.orig/contrib/g3tolj.c
+++ mgetty-1.1.27/contrib/g3tolj.c
@@ -57,6 +57,7 @@
 #include <sys/types.h>
 #include <ctype.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 typedef unsigned char bit;
 
@@ -303,6 +304,8 @@
 
 #endif	/* _G3_H_ */
 
+void skiptoeol (void);
+
 FILE *
   pm_openr (name)
      char *name;
@@ -552,7 +555,7 @@
     return (0);
 }
 
-skiptoeol ()
+void skiptoeol ()
 {
     while (rawzeros < 11)
 	(void) rawgetbit ();
@@ -707,9 +710,9 @@
 	newpage (fd);
 };
 
-void main (argc, argv)
-     int argc;
-     char *argv[];
+int main (argc, argv)
+    int argc;
+    char *argv[];
 {
     int argn, rows, wrows, cols, wcols, row, wrow, col, wcol, i;
     int vval, hval;
@@ -864,5 +867,6 @@
 	    break;
     }
     putrest ();
-    exit (0);
+
+    return 0;
 }