summaryrefslogtreecommitdiff
path: root/packages/mgetty/mgetty-1.1.30/06-pending-contrib_g3tolj.c
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/mgetty/mgetty-1.1.30/06-pending-contrib_g3tolj.c
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/mgetty/mgetty-1.1.30/06-pending-contrib_g3tolj.c')
-rw-r--r--packages/mgetty/mgetty-1.1.30/06-pending-contrib_g3tolj.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/packages/mgetty/mgetty-1.1.30/06-pending-contrib_g3tolj.c b/packages/mgetty/mgetty-1.1.30/06-pending-contrib_g3tolj.c
index e69de29bb2..d0ab83fe84 100644
--- a/packages/mgetty/mgetty-1.1.30/06-pending-contrib_g3tolj.c
+++ b/packages/mgetty/mgetty-1.1.30/06-pending-contrib_g3tolj.c
@@ -0,0 +1,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;
+ }