diff options
-rw-r--r-- | mxget.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |