diff options
| author | itojun <itojun@NetBSD.org> | 2000-07-07 15:10:32 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2000-07-07 15:10:32 +0000 |
| commit | bbef2fbaacededb5eb9a0855d32a09e3b032f2c5 (patch) | |
| tree | 803ad37661cca887d0d2f9ba989c9e4fac0d3b4f /usr.bin/ftp/fetch.c | |
| parent | 82cbc88d2a7761987127a50eb8d22f72dad97c6a (diff) | |
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
Diffstat (limited to 'usr.bin/ftp/fetch.c')
| -rw-r--r-- | usr.bin/ftp/fetch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index a6dabf1b437..3a300553823 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $NetBSD: fetch.c,v 1.116 2000/06/15 13:08:25 lukem Exp $ */ +/* $NetBSD: fetch.c,v 1.117 2000/07/07 15:13:23 itojun Exp $ */ /*- * Copyright (c) 1997-2000 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: fetch.c,v 1.116 2000/06/15 13:08:25 lukem Exp $"); +__RCSID("$NetBSD: fetch.c,v 1.117 2000/07/07 15:13:23 itojun Exp $"); #endif /* not lint */ /* @@ -728,7 +728,7 @@ fetch_url(const char *url, const char *proxyenv, char *proxyauth, char *wwwauth) hints.ai_protocol = 0; error = getaddrinfo(host, port, &hints, &res0); if (error) { - warnx(gai_strerror(error)); + warnx("%s", gai_strerror(error)); goto cleanup_fetch_url; } if (res0->ai_canonname) |
