diff options
author | Gary Mills <gary_mills@fastmail.fm> | 2015-07-20 12:47:39 -0500 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2015-07-23 10:13:23 -0700 |
commit | bd0e95e605fff368075e869efe6d31ebe471ea49 (patch) | |
tree | db10a086883415ad2176002b49e17a132fea4545 /usr/src/lib/libresolv/res_debug.c | |
parent | 3f745f41d6d087602fbb2f748e1baabc3768f5fb (diff) | |
download | illumos-joyent-bd0e95e605fff368075e869efe6d31ebe471ea49.tar.gz |
1926 libresolv evades compiler warnings
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Albert Lee <trisk@omniti.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/lib/libresolv/res_debug.c')
-rw-r--r-- | usr/src/lib/libresolv/res_debug.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/src/lib/libresolv/res_debug.c b/usr/src/lib/libresolv/res_debug.c index 6d05865e6b..a931e74580 100644 --- a/usr/src/lib/libresolv/res_debug.c +++ b/usr/src/lib/libresolv/res_debug.c @@ -20,6 +20,7 @@ */ /* + * Copyright 2015 Gary Mills * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -37,15 +38,16 @@ * contributors. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> +#include <sys/socket.h> #include <netinet/in.h> +#include <arpa/inet.h> #include <stdio.h> +#include <string.h> #include <arpa/nameser.h> +#include <resolv.h> +#include "crossl.h" -extern char *p_cdname(), *p_rr(), *p_type(), *p_class(), *p_time(); -extern char *inet_ntoa(); void fp_query(char *msg, FILE *file); char *_res_opcodes[] = { @@ -195,7 +197,8 @@ p_cdname(cp, msg, file) char name[MAXDNAME]; int n; - if ((n = dn_expand(msg, msg + 512, cp, name, sizeof (name))) < 0) + if ((n = dn_expand((u_char *)msg, (u_char *)(msg + 512), (u_char *)cp, + (u_char *)name, sizeof (name))) < 0) return (NULL); if (name[0] == '\0') { name[0] = '.'; |