summaryrefslogtreecommitdiff
path: root/gethost.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 19:57:15 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 19:57:15 -0700
commitee3e046dfd84cda1588eef155c7e7c36df9bf5f4 (patch)
treea01da219178935fef20c9b34bfee37bd37bfb345 /gethost.c
parent7f7f8cd60795c9503156950d518caa04b30a94a2 (diff)
downloadxorg-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gethost.c b/gethost.c
index 68dce0f..2df5a8f 100644
--- a/gethost.c
+++ b/gethost.c
@@ -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;