From 4835b5090fa075441acdfe6da045b3a893aa6b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20W=C3=BChrer?= Date: Tue, 17 Jan 2023 18:04:46 +0100 Subject: Fix warnings. --- english2uryuomoco.c | 4 +++- test.sh | 6 +++--- uryuomoco2english.c | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) mode change 100644 => 100755 test.sh 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 old mode 100644 new mode 100755 index f04974e..4f1fa36 --- 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); -- cgit v1.2.3