diff options
Diffstat (limited to 'lib/libc/stdio/fpurge.c')
-rw-r--r-- | lib/libc/stdio/fpurge.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/stdio/fpurge.c b/lib/libc/stdio/fpurge.c index 4a0988e8479..8fa541dd1c7 100644 --- a/lib/libc/stdio/fpurge.c +++ b/lib/libc/stdio/fpurge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpurge.c,v 1.7 2009/10/21 16:04:23 guenther Exp $ */ +/* $OpenBSD: fpurge.c,v 1.8 2009/10/22 01:23:16 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -43,9 +43,7 @@ int fpurge(FILE *fp) { - FLOCKFILE(fp); if (!fp->_flags) { - FUNLOCKFILE(fp); errno = EBADF; return(EOF); } @@ -56,6 +54,5 @@ fpurge(FILE *fp) fp->_p = fp->_bf._base; fp->_r = 0; fp->_w = fp->_flags & (__SLBF|__SNBF) ? 0 : fp->_bf._size; - FUNLOCKFILE(fp); return (0); } |