diff options
author | Jim Meyering <jim@meyering.net> | 2004-03-21 18:45:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-03-21 18:45:54 +0000 |
commit | f4b7232607e03a88a655c5b0d9699488f0966b72 (patch) | |
tree | 81cd1c8c9dace6ba2574cdb85bda6f12568b583f | |
parent | 8def27a37e3119cbb4238dbcc2a0c3554391c9bc (diff) | |
download | coreutils-f4b7232607e03a88a655c5b0d9699488f0966b72.tar.xz |
(tsort): Reflect changes in use of readtoken.
-rw-r--r-- | src/tsort.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tsort.c b/src/tsort.c index efcea11cc..3ef6cb080 100644 --- a/src/tsort.c +++ b/src/tsort.c @@ -470,11 +470,9 @@ tsort (const char *file) while (1) { - long int len; - /* T2. Next Relation. */ - len = readtoken (fp, DELIM, sizeof (DELIM) - 1, &tokenbuffer); - if (len < 0) + size_t len = readtoken (fp, DELIM, sizeof (DELIM) - 1, &tokenbuffer); + if (len == (size_t) -1) break; assert (len != 0); |