From 7223924aeb7a26ebef01592b48b7c9ee6c87526f Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Mon, 19 Jun 2023 23:50:52 +0000 Subject: [PATCH] roken/hostent_find_fqdn.c: Fix unnecessary const abuse. --- lib/roken/hostent_find_fqdn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/roken/hostent_find_fqdn.c b/lib/roken/hostent_find_fqdn.c index dc3c17ff2..5c41ed73b 100644 --- a/lib/roken/hostent_find_fqdn.c +++ b/lib/roken/hostent_find_fqdn.c @@ -43,10 +43,10 @@ ROKEN_LIB_FUNCTION const char * ROKEN_LIB_CALL hostent_find_fqdn (const struct hostent *he) { const char *ret = he->h_name; - const char **h; + char **h; if (strchr (ret, '.') == NULL) - for (h = (const char **)he->h_aliases; *h != NULL; ++h) { + for (h = he->h_aliases; *h != NULL; ++h) { if (strchr (*h, '.') != NULL) { ret = *h; break;