aboutsummaryrefslogtreecommitdiffstats
path: root/mxget.c
diff options
context:
space:
mode:
Diffstat (limited to 'mxget.c')
-rw-r--r--mxget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mxget.c b/mxget.c
index 876b2c88..82f958d9 100644
--- a/mxget.c
+++ b/mxget.c
@@ -51,7 +51,7 @@ struct mxentry *getmxrecords(const char *name)
pmx->name = (char *)NULL;
pmx->pref = -1;
- n = res_search(name, C_IN,T_MX, &answer, sizeof(answer));
+ n = res_search(name, C_IN,T_MX, (unsigned char *)&answer, sizeof(answer));
if (n == -1)
return((struct mxentry *)NULL);