warn()->warnx() in a couple of places.
This commit is contained in:
parent
5c34356d4c
commit
a502b0ee92
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: fetch.c,v 1.68 1999/08/31 22:05:22 christos Exp $ */
|
/* $NetBSD: fetch.c,v 1.69 1999/09/14 22:49:14 mycroft Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__RCSID("$NetBSD: fetch.c,v 1.68 1999/08/31 22:05:22 christos Exp $");
|
__RCSID("$NetBSD: fetch.c,v 1.69 1999/09/14 22:49:14 mycroft Exp $");
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -702,7 +702,7 @@ fetch_url(url, proxyenv, proxyauth, wwwauth)
|
||||||
hints.ai_protocol = 0;
|
hints.ai_protocol = 0;
|
||||||
error = getaddrinfo(host, port, &hints, &res);
|
error = getaddrinfo(host, port, &hints, &res);
|
||||||
if (error) {
|
if (error) {
|
||||||
warn(gai_strerror(error));
|
warnx(gai_strerror(error));
|
||||||
goto cleanup_fetch_url;
|
goto cleanup_fetch_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ftp.c,v 1.60 1999/09/03 04:29:57 itojun Exp $ */
|
/* $NetBSD: ftp.c,v 1.61 1999/09/14 22:49:14 mycroft Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 1997 and 1998 WIDE Project.
|
* Copyright (C) 1997 and 1998 WIDE Project.
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94";
|
static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: ftp.c,v 1.60 1999/09/03 04:29:57 itojun Exp $");
|
__RCSID("$NetBSD: ftp.c,v 1.61 1999/09/14 22:49:14 mycroft Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ hookup(host, port)
|
||||||
hints.ai_protocol = 0;
|
hints.ai_protocol = 0;
|
||||||
error = getaddrinfo(host, port, &hints, &res0);
|
error = getaddrinfo(host, port, &hints, &res0);
|
||||||
if (error) {
|
if (error) {
|
||||||
warn(gai_strerror(error));
|
warnx(gai_strerror(error));
|
||||||
code = -1;
|
code = -1;
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue