From: Jim Meyering Date: Sun, 21 Mar 2004 18:45:54 +0000 (+0000) Subject: (tsort): Reflect changes in use of readtoken. X-Git-Tag: COREUTILS-5_3_0~2007 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4b7232607e03a88a655c5b0d9699488f0966b72;p=platform%2Fupstream%2Fcoreutils.git (tsort): Reflect changes in use of readtoken. --- 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);