summaryrefslogtreecommitdiff
path: root/lib/__fpending.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/__fpending.c')
-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;
}