summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--english2uryuomoco.c4
-rwxr-xr-x[-rw-r--r--]test.sh6
-rw-r--r--uryuomoco2english.c2
3 files changed, 7 insertions, 5 deletions
diff --git a/english2uryuomoco.c b/english2uryuomoco.c
index e64725c..a7f5cfa 100644
--- a/english2uryuomoco.c
+++ b/english2uryuomoco.c
@@ -44,6 +44,8 @@ char trl[]="uvs.ohtf.dprnmekwlcgab.zix";
* z->x
*/
+int tr(int);
+
int ing(){ // i
int c=getchar();
if(c=='n'){ // in
@@ -119,7 +121,7 @@ int tr(int c){
}
int main(int argc, char** argv){
- char c;
+ int c;
do{
c=getchar();
}while(c!=EOF && tr(c)!=EOF);
diff --git a/test.sh b/test.sh
index f04974e..4f1fa36 100644..100755
--- a/test.sh
+++ b/test.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-wd=$( dirname $0 )
+wd=$(dirname "$0")
-${wd}/uryuomoco2english <${wd}/uryuomoco | diff - ${wd}/english &&
-${wd}/english2uryuomoco <${wd}/english | diff - ${wd}/uryuomoco
+"$wd"/uryuomoco2english < "$wd"/uryuomoco | diff - "$wd"/english &&
+"$wd"/english2uryuomoco < "$wd"/english | diff - "$wd"/uryuomoco
diff --git a/uryuomoco2english.c b/uryuomoco2english.c
index c373bc0..0cf14cf 100644
--- a/uryuomoco2english.c
+++ b/uryuomoco2english.c
@@ -149,7 +149,7 @@ int tr(int c){
}
int main(int argc, char** argv){
- char c;
+ int c;
do{
c=getchar();
}while(c!=EOF && tr(c)!=EOF);