diff --git a/source/heimdal/lib/roken/gai_strerror.c b/source/heimdal/lib/roken/gai_strerror.c index 5c28f58bf46..8138a594057 100644 --- a/source/heimdal/lib/roken/gai_strerror.c +++ b/source/heimdal/lib/roken/gai_strerror.c @@ -40,7 +40,7 @@ RCSID("$Id: gai_strerror.c,v 1.5 2005/04/12 11:28:42 lha Exp $"); static struct gai_error { int code; - char *str; + const char *str; } errors[] = { {EAI_NOERROR, "no error"}, #ifdef EAI_ADDRFAMILY @@ -65,7 +65,7 @@ static struct gai_error { * */ -char * ROKEN_LIB_FUNCTION +const char * ROKEN_LIB_FUNCTION gai_strerror(int ecode) { struct gai_error *g; diff --git a/source/heimdal/lib/roken/roken.h b/source/heimdal/lib/roken/roken.h index 545f43c6a75..200968729e6 100644 --- a/source/heimdal/lib/roken/roken.h +++ b/source/heimdal/lib/roken/roken.h @@ -543,7 +543,7 @@ freeaddrinfo(struct addrinfo *ai); #endif #ifndef HAVE_GAI_STRERROR -char * ROKEN_LIB_FUNCTION +const char * ROKEN_LIB_FUNCTION gai_strerror(int ecode); #endif