]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/mgetty/mgetty-1.1.30/07-pending-contrib_g3toxwd.c
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / mgetty / mgetty-1.1.30 / 07-pending-contrib_g3toxwd.c
1 --- mgetty-1.1.27.orig/contrib/g3toxwd.c
2 +++ mgetty-1.1.27/contrib/g3toxwd.c
3 @@ -26,6 +26,8 @@
4  #include <sys/types.h>
5  #include <ctype.h>
6  #include <stdio.h>
7 +#include <stdlib.h>
8 +#include <string.h>
9  
10  typedef unsigned char bit;
11  
12 @@ -331,6 +333,8 @@
13  
14  #endif /* _G3_H_ */
15  
16 +void skiptoeol (void);
17 +
18  FILE *
19    pm_openr (name)
20       char *name;
21 @@ -604,7 +608,7 @@
22      return (0);
23  }
24  
25 -skiptoeol ()
26 +void skiptoeol ()
27  {
28      while (rawzeros < 11)
29         (void) rawgetbit ();
30 @@ -732,7 +736,7 @@
31         putchar (byte);
32  };
33  
34 -void main (argc, argv)
35 +int main (argc, argv)
36       int argc;
37       char *argv[];
38  {
39 @@ -883,5 +887,6 @@
40         xwd_writerow (stdout, writerow, wcols);
41         wrow++;
42      }
43 -    exit (0);
44 +
45 +    return 0;
46  }