summaryrefslogtreecommitdiff
path: root/korean/hmconv/files/patch-hmconv1.0pl3.c
blob: 0c41be6ef6bdbee7875aae686adcdce9c3bdbdcc (plain) (blame)
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
--- hmconv1.0pl3.c.orig	1996-07-23 03:16:14 UTC
+++ hmconv1.0pl3.c
@@ -46,6 +46,7 @@
 
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 
 #define isksc(c)   ( (unsigned char) (c) > (unsigned char) '\240'   && \
@@ -125,6 +126,7 @@ char	*optstring;
 }
 
 #ifndef KNR
+int
 main (int argc, char **argv)
 #else
 main (argc,argv)
@@ -208,7 +210,7 @@ int convert()
 
       if ( !ishangul) {     /* KSC 5601 doesn't appear, yet */
          fputs((char *) line,out);   /* no conversion */
-         return;
+         return(0);
       }