aboutsummaryrefslogtreecommitdiffstats
path: root/mxget.c
diff options
context:
space:
mode:
Diffstat (limited to 'mxget.c')
-rw-r--r--mxget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mxget.c b/mxget.c
index 482ea568..726417b1 100644
--- a/mxget.c
+++ b/mxget.c
@@ -51,7 +51,8 @@ struct mxentry *getmxrecords(const unsigned char *name)
pmx->name = (char *)NULL;
pmx->pref = -1;
- n = res_search(name,C_IN,T_MX,(unsigned char*)&answer, sizeof(answer));
+ n = res_search((char *)name,
+ C_IN,T_MX, (unsigned char*)&answer, sizeof(answer));
if (n == -1)
return((struct mxentry *)NULL);
@@ -88,7 +89,7 @@ struct mxentry *getmxrecords(const unsigned char *name)
pmx[ind].pref = pref;
++ind;
- n = strlen(bp);
+ n = strlen((const char *)bp);
bp += n;
*bp++ = '\0';