projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8def27a
)
(tsort): Reflect changes in use of readtoken.
author
Jim Meyering
<jim@meyering.net>
Sun, 21 Mar 2004 18:45:54 +0000
(18:45 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 21 Mar 2004 18:45:54 +0000
(18:45 +0000)
src/tsort.c
patch
|
blob
|
history
diff --git
a/src/tsort.c
b/src/tsort.c
index efcea11cca2d9fd0979c7bd0f13325042849a45c..3ef6cb080069ed50d627491b95b8f08ede33aff1 100644
(file)
--- 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);