diff options
Diffstat (limited to 'lib/libc/stdio/puts.c')
-rw-r--r-- | lib/libc/stdio/puts.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libc/stdio/puts.c b/lib/libc/stdio/puts.c index a3957b3b234..c932a83ce1b 100644 --- a/lib/libc/stdio/puts.c +++ b/lib/libc/stdio/puts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: puts.c,v 1.8 2009/10/21 16:04:23 guenther Exp $ */ +/* $OpenBSD: puts.c,v 1.9 2009/10/22 01:23:16 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -33,7 +33,6 @@ #include <stdio.h> #include <string.h> -#include "local.h" #include "fvwrite.h" /* @@ -45,7 +44,6 @@ puts(const char *s) size_t c = strlen(s); struct __suio uio; struct __siov iov[2]; - int ret; iov[0].iov_base = (void *)s; iov[0].iov_len = c; @@ -54,8 +52,5 @@ puts(const char *s) uio.uio_resid = c + 1; uio.uio_iov = &iov[0]; uio.uio_iovcnt = 2; - FLOCKFILE(stdout); - ret = __sfvwrite(stdout, &uio); - FUNLOCKFILE(stdout); - return (ret ? EOF : '\n'); + return (__sfvwrite(stdout, &uio) ? EOF : '\n'); } |