changeset 9982:a4502ab3c8d6

Oops, fix mistake in third-to-last commit.
author Bruno Haible <bruno@clisp.org>
date Sat, 26 Apr 2008 19:42:00 +0200
parents e3d6988a9347
children 24149eff52b8
files lib/fflush.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/fflush.c	Sat Apr 26 18:58:00 2008 +0200
+++ b/lib/fflush.c	Sat Apr 26 19:42:00 2008 +0200
@@ -62,7 +62,7 @@
 #endif
 
 static inline void
-update_fpos_cache (FILE *fp)
+update_fpos_cache (FILE *fp, off_t pos)
 {
 #if defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, MacOS X, Cygwin */
   fp_->_offset = pos;
@@ -161,7 +161,7 @@
     return EOF;
   /* After a successful lseek, update the file descriptor's position cache
      in the stream.  */
-  update_fpos_cache (stream);
+  update_fpos_cache (stream, pos);
 
   return 0;