From: Micah Cowan Date: Thu, 24 Sep 2009 18:50:07 +0000 (-0700) Subject: host_errstr should return const char *. X-Git-Tag: v1.13~222 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=37f915419b2465a8e3bae64a8234323e6d0d6c59 host_errstr should return const char *. --- diff --git a/src/ChangeLog b/src/ChangeLog index 025b199c..e6be4bf3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-09-24 Micah Cowan + + * host.c (host_errstr): host_errstr should return const char *. + 2009-09-22 Micah Cowan * Makefile.am (version.c): Explicitly tell Mercurial where the diff --git a/src/host.c b/src/host.c index dffb5a65..a660c5a0 100644 --- a/src/host.c +++ b/src/host.c @@ -345,7 +345,7 @@ gethostbyname_with_timeout (const char *host_name, double timeout) } /* Print error messages for host errors. */ -static char * +static const char * host_errstr (int error) { /* Can't use switch since some of these constants can be equal,