diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-07 02:13:11 +0000 | 
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2001-09-07 02:13:11 +0000 | 
| commit | ac206f37a144c456a64da6af542cc922c1ccf938 (patch) | |
| tree | 1bc060499b8c9ba15c816f5fe2ff2be2ae7a82d9 /lib/libc/stdio/stdio.c | |
| parent | 1cf610caba72df7279a2f4d3f9a86056841b4add (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio/stdio.c')
| -rw-r--r-- | lib/libc/stdio/stdio.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c index 1a5aa729d23b..96cfcae6e21b 100644 --- a/lib/libc/stdio/stdio.c +++ b/lib/libc/stdio/stdio.c @@ -127,8 +127,8 @@ _swrite(fp, buf, n)  {  	int ret; -	if ((fp->_flags & __SAPP) && _sseek(fp, (fpos_t)0, SEEK_END) == -1) -		return (-1); +	if (fp->_flags & __SAPP) +		(void)_sseek(fp, (fpos_t)0, SEEK_END);  	ret = (*fp->_write)(fp->_cookie, buf, n);  	/* __SOFF removed even on success in case O_APPEND mode is set. */  	if (ret >= 0) { | 
