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,