diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 19:57:15 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-28 19:57:15 -0700 |
commit | ee3e046dfd84cda1588eef155c7e7c36df9bf5f4 (patch) | |
tree | a01da219178935fef20c9b34bfee37bd37bfb345 /gethost.c | |
parent | 7f7f8cd60795c9503156950d518caa04b30a94a2 (diff) | |
download | xorg-app-xauth-ee3e046dfd84cda1588eef155c7e7c36df9bf5f4.tar.gz |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'gethost.c')
-rw-r--r-- | gethost.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -97,7 +97,7 @@ nameserver_lost(int sig) } #endif -char * +const char * get_hostname (Xauth *auth) { static struct hostent *hp; @@ -238,13 +238,13 @@ static Bool get_dnet_address (name, resultp) struct addrlist *get_address_info ( int family, - char *fulldpyname, + const char *fulldpyname, int prefix, char *host) { struct addrlist *retval = NULL; int len = 0; - void *src = NULL; + const void *src = NULL; #ifdef TCPCONN #if defined(IPv6) && defined(AF_INET6) struct addrlist *lastrv = NULL; |