summaryrefslogtreecommitdiff
path: root/src/factor.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-03-21 18:45:37 +0000
committerJim Meyering <jim@meyering.net>2004-03-21 18:45:37 +0000
commit8def27a37e3119cbb4238dbcc2a0c3554391c9bc (patch)
treed0a95b68047f60749116fcfcd8bdd10da0d0e6ad /src/factor.c
parent865123bcc5c487c896cf71c161e0591d122cdad4 (diff)
downloadcoreutils-8def27a37e3119cbb4238dbcc2a0c3554391c9bc.tar.xz
(do_stdin): Reflect changes in use of readtoken.
Diffstat (limited to 'src/factor.c')
-rw-r--r--src/factor.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/factor.c b/src/factor.c
index 305a958ae..9aec7d676 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -175,11 +175,9 @@ do_stdin (void)
for (;;)
{
- long int token_length;
-
- token_length = readtoken (stdin, DELIM, sizeof (DELIM) - 1,
- &tokenbuffer);
- if (token_length < 0)
+ size_t token_length = readtoken (stdin, DELIM, sizeof (DELIM) - 1,
+ &tokenbuffer);
+ if (token_length == (size_t) -1)
break;
fail |= print_factors (tokenbuffer.buffer);
}