(token): Use feof_unlocked on private stream.
authordrepper <drepper>
Sun, 5 Jul 1998 11:53:31 +0000 (11:53 +0000)
committerdrepper <drepper>
Sun, 5 Jul 1998 11:53:31 +0000 (11:53 +0000)
inet/ruserpass.c

index 9c09051..3cdacd1 100644 (file)
@@ -265,7 +265,7 @@ token()
        int c;
        struct toktab *t;
 
-       if (feof(cfile) || ferror(cfile))
+       if (feof_unlocked(cfile) || ferror_unlocked(cfile))
                return (0);
        while ((c = getc_unlocked(cfile)) != EOF &&
            (c == '\n' || c == '\t' || c == ' ' || c == ','))