Made compilable with ANSI C compiler

This commit is contained in:
ceriel
1990-11-06 13:02:55 +00:00
parent 87a8061e1c
commit f192338596
15 changed files with 69 additions and 20 deletions

View File

@@ -60,15 +60,15 @@ int _nxtdig(f) struct file *f; {
}
int _getint(f) struct file *f; {
int signed,i,ch;
int is_signed,i,ch;
signed = _getsig(f);
is_signed = _getsig(f);
ch = _fstdig(f);
i = 0;
do
i = i*10 - ch;
while ((ch = _nxtdig(f)) >= 0);
return(signed ? i : -i);
return(is_signed ? i : -i);
}
int _rdi(f) struct file *f; {