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 | |
| parent | 82cbc88d2a7761987127a50eb8d22f72dad97c6a (diff) | |
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
Diffstat (limited to 'usr.bin/ftp')
| -rw-r--r-- | usr.bin/ftp/fetch.c | 6 | ||||
| -rw-r--r-- | usr.bin/ftp/ftp.c | 10 |
2 files changed, 8 insertions, 8 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) diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index f4d6e62e4d9..5a1c8940768 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1,4 +1,4 @@ -/* $NetBSD: ftp.c,v 1.100 2000/06/11 15:15:52 lukem Exp $ */ +/* $NetBSD: ftp.c,v 1.101 2000/07/07 15:13:24 itojun Exp $ */ /*- * Copyright (c) 1996-2000 The NetBSD Foundation, Inc. @@ -103,7 +103,7 @@ #if 0 static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94"; #else -__RCSID("$NetBSD: ftp.c,v 1.100 2000/06/11 15:15:52 lukem Exp $"); +__RCSID("$NetBSD: ftp.c,v 1.101 2000/07/07 15:13:24 itojun Exp $"); #endif #endif /* not lint */ @@ -202,7 +202,7 @@ hookup(char *host, char *port) hints.ai_protocol = 0; error = getaddrinfo(host, port, &hints, &res0); if (error) { - warnx(gai_strerror(error)); + warnx("%s", gai_strerror(error)); code = -1; return (0); } @@ -271,7 +271,7 @@ hookup(char *host, char *port) break; } if (s < 0) { - warn(cause); + warn("%s", cause); code = -1; freeaddrinfo(res0); return 0; @@ -342,7 +342,7 @@ hookup(char *host, char *port) break; } if (s < 0) { - warn(cause); + warn("%s", cause); code = -1; return 0; } |
