summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-03-01 20:25:44 +0000
committerderaadt <deraadt@openbsd.org>2004-03-01 20:25:44 +0000
commitcdbb6477dd27358d48eaca55975e68afd0907768 (patch)
tree9e6568a08103f0c101f61bd7a584920c540f99ea /lib/libc/net
parentzap extra spaces. From a PR by Jared Yanovich. (diff)
downloadwireguard-openbsd-cdbb6477dd27358d48eaca55975e68afd0907768.tar.xz
wireguard-openbsd-cdbb6477dd27358d48eaca55975e68afd0907768.zip
do not recommend a format string error..; pbastos@rdc.puc-rio.br
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/getaddrinfo.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/getaddrinfo.3 b/lib/libc/net/getaddrinfo.3
index a9004e3207e..8c86748990c 100644
--- a/lib/libc/net/getaddrinfo.3
+++ b/lib/libc/net/getaddrinfo.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getaddrinfo.3,v 1.25 2003/08/08 09:26:02 jmc Exp $
+.\" $OpenBSD: getaddrinfo.3,v 1.26 2004/03/01 20:25:44 deraadt Exp $
.\" $KAME: getaddrinfo.3,v 1.29 2001/02/12 09:24:45 itojun Exp $
.\"
.\" Copyright (c) 1983, 1987, 1991, 1993
@@ -424,7 +424,7 @@ for (res = res0; res; res = res->ai_next) {
break; /* okay we got one */
}
if (s < 0) {
- err(1, cause);
+ err(1, "%s", cause);
/*NOTREACHED*/
}
freeaddrinfo(res0);
@@ -468,7 +468,7 @@ for (res = res0; res && nsock < MAXSOCK; res = res->ai_next) {
nsock++;
}
if (nsock == 0) {
- err(1, cause);
+ err(1, "%s", cause);
/*NOTREACHED*/
}
freeaddrinfo(res0);