summaryrefslogtreecommitdiff
path: root/gethost.c
diff options
context:
space:
mode:
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;