From 01de7b57ce3ae858a058d77ede98dbd92e59b482 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Tue, 10 Jul 2001 11:58:23 +0000 Subject: [PATCH] (hostent_find_fqdn): const-ize git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10307 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/hostent_find_fqdn.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/roken/hostent_find_fqdn.c b/lib/roken/hostent_find_fqdn.c index 68d701c8e..0de88c174 100644 --- a/lib/roken/hostent_find_fqdn.c +++ b/lib/roken/hostent_find_fqdn.c @@ -42,14 +42,14 @@ RCSID("$Id$"); * Try to find a fqdn (with `.') in he if possible, else return h_name */ -char * +const char * hostent_find_fqdn (const struct hostent *he) { - char *ret = he->h_name; - char **h; + const char *ret = he->h_name; + const char **h; if (strchr (ret, '.') == NULL) - for (h = he->h_aliases; *h; ++h) { + for (h = (const char **)he->h_aliases; *h != NULL; ++h) { if (strchr (*h, '.') != NULL) { ret = *h; break;