From 37f915419b2465a8e3bae64a8234323e6d0d6c59 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Thu, 24 Sep 2009 11:50:07 -0700 Subject: [PATCH] host_errstr should return const char *. --- src/ChangeLog | 4 ++++ src/host.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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, -- 2.39.2