about summary refs log tree commit diff
path: root/libio/iofwrite_u.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofwrite_u.c')
-rw-r--r--libio/iofwrite_u.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libio/iofwrite_u.c b/libio/iofwrite_u.c
index acb5b2f527..b9f0816ddf 100644
--- a/libio/iofwrite_u.c
+++ b/libio/iofwrite_u.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -38,10 +38,8 @@ fwrite_unlocked (buf, size, count, fp)
   _IO_size_t request = size * count;
   _IO_size_t written = 0;
   CHECK_FILE (fp, 0);
-  /* Many traditional implementations return 0 if size==0 && count > 0,
-     but ANSI requires us to return count in this case. */
   if (request == 0)
-    return count;
+    return 0;
   if (_IO_fwide (fp, -1) == -1)
     {
       written = _IO_sputn (fp, (const char *) buf, request);