summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2017-07-22 13:22:32 +0000
committeranton <anton@openbsd.org>2017-07-22 13:22:32 +0000
commit0a562317eb9cbd34225a9022f2b8cb40c2bd6994 (patch)
tree94ef03eeb1709a2fa72cc3817b7a76206762aef0 /lib/libc/stdio
parentCleanup previous release patches and backup kernel _before_ applying new (diff)
downloadwireguard-openbsd-0a562317eb9cbd34225a9022f2b8cb40c2bd6994.tar.xz
wireguard-openbsd-0a562317eb9cbd34225a9022f2b8cb40c2bd6994.zip
Favor err() over perror() in example.
ok schwarze@
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/getdelim.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/getdelim.3 b/lib/libc/stdio/getdelim.3
index fbc1664b67a..8ef2dca89d5 100644
--- a/lib/libc/stdio/getdelim.3
+++ b/lib/libc/stdio/getdelim.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getdelim.3,v 1.4 2016/04/04 19:23:52 guenther Exp $
+.\" $OpenBSD: getdelim.3,v 1.5 2017/07/22 13:22:32 anton Exp $
.\" $NetBSD: getdelim.3,v 1.9 2011/04/20 23:37:51 enami Exp $
.\"
.\" Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: April 4 2016 $
+.Dd $Mdocdate: July 22 2017 $
.Dt GETDELIM 3
.Os
.Sh NAME
@@ -124,7 +124,7 @@ while ((linelen = getline(\*[Am]line, \*[Am]linesize, fp)) != -1)
free(line);
if (ferror(fp))
- perror("getline");
+ err(1, "getline");
.Ed
.Sh ERRORS
.Bl -tag -width [EOVERFLOW]