diff options
author | David Wührer <def@gmx.at> | 2023-01-17 18:04:46 +0100 |
---|---|---|
committer | David Wührer <def@gmx.at> | 2023-01-17 18:04:46 +0100 |
commit | 4835b5090fa075441acdfe6da045b3a893aa6b2b (patch) | |
tree | e9053c5a33fdb6e6a482a5d5d0b595576595dbd3 | |
parent | ed28bd25e3055ff9134eb655be37c076f9bf67fe (diff) |
Fix warnings.
-rw-r--r-- | english2uryuomoco.c | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | test.sh | 6 | ||||
-rw-r--r-- | uryuomoco2english.c | 2 |
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); @@ -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); |