diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-08-05 08:09:43 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:31:17 -0500 |
commit | 2624d8f096f222b48f9aa36e960ce46df597c5b6 (patch) | |
tree | 7f75cda8b65863a9b0e1e814f06f86f15efdbfac | |
parent | b613386a7f045ba3f29e6c41709fff6ca1394e48 (diff) | |
download | samba-2624d8f096f222b48f9aa36e960ce46df597c5b6.tar.gz samba-2624d8f096f222b48f9aa36e960ce46df597c5b6.tar.bz2 samba-2624d8f096f222b48f9aa36e960ce46df597c5b6.zip |
r9105: match the prototype of netdb.h
this should fix the build on solaris 10
lha can that be merged to the main heimdal if that apears to not break
the build on other platforms
metze
(This used to be commit cb0259627976c10906016233fb27a1d05ae7e4b0)
-rw-r--r-- | source4/heimdal/lib/roken/gai_strerror.c | 4 | ||||
-rw-r--r-- | source4/heimdal/lib/roken/roken.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/heimdal/lib/roken/gai_strerror.c b/source4/heimdal/lib/roken/gai_strerror.c index 5c28f58bf4..8138a59405 100644 --- a/source4/heimdal/lib/roken/gai_strerror.c +++ b/source4/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/source4/heimdal/lib/roken/roken.h b/source4/heimdal/lib/roken/roken.h index 545f43c6a7..200968729e 100644 --- a/source4/heimdal/lib/roken/roken.h +++ b/source4/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 |