projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
284866a
)
Oops, fix mistake in third-to-last commit.
author
Bruno Haible
<bruno@clisp.org>
Sat, 26 Apr 2008 17:42:00 +0000
(19:42 +0200)
committer
Bruno Haible
<bruno@clisp.org>
Sat, 26 Apr 2008 17:42:00 +0000
(19:42 +0200)
lib/fflush.c
patch
|
blob
|
history
diff --git
a/lib/fflush.c
b/lib/fflush.c
index
f143247
..
22d7d02
100644
(file)
--- a/
lib/fflush.c
+++ b/
lib/fflush.c
@@
-62,7
+62,7
@@
restore_seek_optimization (FILE *fp, int saved_flags)
#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
@@
rpl_fflush (FILE *stream)
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;