summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-12-14 06:49:36 +0000
committertholo <tholo@openbsd.org>1996-12-14 06:49:36 +0000
commit198c6cf51167a9bc60fc9a12c29bdced0df8c37a (patch)
tree2fefa1099cd0f864190c186748307f8d10bba747 /lib/libc/net
parentNow does not display responses to other peoples stuff, like UDP packets (diff)
downloadwireguard-openbsd-198c6cf51167a9bc60fc9a12c29bdced0df8c37a.tar.xz
wireguard-openbsd-198c6cf51167a9bc60fc9a12c29bdced0df8c37a.zip
Clean up lint and compile warnings
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/res_mkquery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/res_mkquery.c b/lib/libc/net/res_mkquery.c
index 02b64e98865..6fbd6a38599 100644
--- a/lib/libc/net/res_mkquery.c
+++ b/lib/libc/net/res_mkquery.c
@@ -52,7 +52,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: res_mkquery.c,v 1.4 1996/09/15 09:31:20 tholo Exp $";
+static char rcsid[] = "$OpenBSD: res_mkquery.c,v 1.5 1996/12/14 06:49:39 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -132,7 +132,7 @@ res_mkquery(op, dname, class, type, data, datalen, newrr_in, buf, buflen)
* Make an additional record for completion domain.
*/
buflen -= RRFIXEDSZ;
- if ((n = dn_comp(data, cp, buflen, dnptrs, lastdnptr)) < 0)
+ if ((n = dn_comp((const char *)data, cp, buflen, dnptrs, lastdnptr)) < 0)
return (-1);
cp += n;
buflen -= n;