summaryrefslogtreecommitdiff
path: root/mgetty/mgetty-1.1.30/07-pending-contrib_g3toxwd.c
blob: 97f59dd484db6aee716b111aee6f8df57f290af4 (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
--- mgetty-1.1.27.orig/contrib/g3toxwd.c
+++ mgetty-1.1.27/contrib/g3toxwd.c
@@ -26,6 +26,8 @@
 #include <sys/types.h>
 #include <ctype.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 typedef unsigned char bit;
 
@@ -331,6 +333,8 @@
 
 #endif	/* _G3_H_ */
 
+void skiptoeol (void);
+
 FILE *
   pm_openr (name)
      char *name;
@@ -604,7 +608,7 @@
     return (0);
 }
 
-skiptoeol ()
+void skiptoeol ()
 {
     while (rawzeros < 11)
 	(void) rawgetbit ();
@@ -732,7 +736,7 @@
 	putchar (byte);
 };
 
-void main (argc, argv)
+int main (argc, argv)
      int argc;
      char *argv[];
 {
@@ -883,5 +887,6 @@
 	xwd_writerow (stdout, writerow, wcols);
 	wrow++;
     }
-    exit (0);
+
+    return 0;
 }