summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-12-05 19:27:47 +0000
committerJim Meyering <jim@meyering.net>2004-12-05 19:27:47 +0000
commita2b300f1568b593a5e76c3167e3cb551fc08c2db (patch)
tree480a9bf45eb674de6e2194c89406e4994827b6f4 /lib
parent9df080cfc5bce3d0a9f871bab65222c9c3b3e60d (diff)
downloadcoreutils-a2b300f1568b593a5e76c3167e3cb551fc08c2db.tar.xz
revert to 1.8, now that we test the offending
condition externally (via new t-fpending.c program)
Diffstat (limited to 'lib')
-rw-r--r--lib/__fpending.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/__fpending.c b/lib/__fpending.c
index eeedd6544..007302c8c 100644
--- a/lib/__fpending.c
+++ b/lib/__fpending.c
@@ -23,15 +23,10 @@
#include "__fpending.h"
-#include <stdlib.h>
-
/* Return the number of pending (aka buffered, unflushed)
bytes on the stream, FP, that is open for writing. */
size_t
__fpending (FILE *fp)
{
- ptrdiff_t n = PENDING_OUTPUT_N_BYTES;
- if (n < 0)
- abort ();
- return n;
+ return PENDING_OUTPUT_N_BYTES;
}