diff options
author | 2009-10-22 01:23:16 +0000 | |
---|---|---|
committer | 2009-10-22 01:23:16 +0000 | |
commit | 7ff09c5c6c97039a5c7f7864c46007f47d652b03 (patch) | |
tree | 85241012fd1c4ec9714f130877e15fb5088fd2d7 /lib/libc/stdio/puts.c | |
parent | Add delete example since it has come up several times. (diff) | |
download | wireguard-openbsd-7ff09c5c6c97039a5c7f7864c46007f47d652b03.tar.xz wireguard-openbsd-7ff09c5c6c97039a5c7f7864c46007f47d652b03.zip |
Back out previous commit, as it caused too much growth for the install
media to fit
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'); } |