From c1dfa1a518513e8028a29c4ced351cf0bed747d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 5 Aug 2005 09:06:29 +0000 Subject: [PATCH] Make return value of gai_strerror const to match SUSv3. Prompted by Stefan Metzmacher change to Samba. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15835 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/gai_strerror.c | 2 +- lib/roken/roken.h.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roken/gai_strerror.c b/lib/roken/gai_strerror.c index 15dbdb537..d07ddf163 100644 --- a/lib/roken/gai_strerror.c +++ b/lib/roken/gai_strerror.c @@ -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/lib/roken/roken.h.in b/lib/roken/roken.h.in index c90b8c3b6..8c855d7a8 100644 --- a/lib/roken/roken.h.in +++ b/lib/roken/roken.h.in @@ -543,7 +543,7 @@ freeaddrinfo(struct addrinfo *); #endif #ifndef HAVE_GAI_STRERROR -char * ROKEN_LIB_FUNCTION +const char * ROKEN_LIB_FUNCTION gai_strerror(int); #endif