some minor corrections

This commit is contained in:
ceriel
1989-06-19 09:56:16 +00:00
parent 3824cfd66d
commit b11e382851
4 changed files with 5 additions and 5 deletions

View File

@@ -225,9 +225,8 @@ _doprnt(fmt,ap,stream)
break;
#endif
case 'r':
ap = va_arg(ap, char *);
ap = va_arg(ap, va_list);
fmt = va_arg(ap, char *);
fmt=oldfmt;
continue;
}
#ifndef NOFLOAT

View File

@@ -11,6 +11,6 @@ int getw(iop)
while (cnt--) {
*p++ = getc(iop);
}
if (foef(iop) || ferror(iop)) return EOF;
if (feof(iop) || ferror(iop)) return EOF;
return w;
}