]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
revert to 1.8, now that we test the offending
authorJim Meyering <jim@meyering.net>
Sun, 5 Dec 2004 19:27:47 +0000 (19:27 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 5 Dec 2004 19:27:47 +0000 (19:27 +0000)
condition externally (via new t-fpending.c program)

lib/__fpending.c

index eeedd65443c81940ebc7773e009b0a014ae80868..007302c8c4563644e25a902758703f8f2a593bac 100644 (file)
 
 #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;
 }