Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/resolv more type changes
details: https://anonhg.NetBSD.org/src/rev/aa1732f3827f
branches: trunk
changeset: 784980:aa1732f3827f
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 16 13:37:01 2013 +0000
description:
more type changes
diffstat:
lib/libc/resolv/res_send.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r dc178183141c -r aa1732f3827f lib/libc/resolv/res_send.c
--- a/lib/libc/resolv/res_send.c Sat Feb 16 13:33:10 2013 +0000
+++ b/lib/libc/resolv/res_send.c Sat Feb 16 13:37:01 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: res_send.c,v 1.27 2013/02/16 13:29:34 christos Exp $ */
+/* $NetBSD: res_send.c,v 1.28 2013/02/16 13:37:01 christos Exp $ */
/*
* Portions Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
@@ -93,7 +93,7 @@
static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
static const char rcsid[] = "Id: res_send.c,v 1.22 2009/01/22 23:49:23 tbox Exp";
#else
-__RCSID("$NetBSD: res_send.c,v 1.27 2013/02/16 13:29:34 christos Exp $");
+__RCSID("$NetBSD: res_send.c,v 1.28 2013/02/16 13:37:01 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -176,7 +176,7 @@
static socklen_t get_salen(const struct sockaddr *);
static struct sockaddr * get_nsaddr(res_state, size_t);
-static int send_vc(res_state, const u_char *, int,
+static int send_vc(res_state, const void *, size_t,
u_char *, int, int *, int);
static int send_dg(res_state,
#ifdef USE_KQUEUE
@@ -661,7 +661,7 @@
static int
send_vc(res_state statp,
- const u_char *buf, int buflen, u_char *ans, int anssiz,
+ const void *buf, size_t buflen, u_char *ans, int anssiz,
int *terrno, int ns)
{
const HEADER *hp = (const HEADER *)(const void *)buf;
@@ -756,7 +756,7 @@
ns_put16((u_short)buflen, (u_char*)(void *)&len);
iov[0] = evConsIovec(&len, INT16SZ);
DE_CONST(buf, tmp);
- iov[1] = evConsIovec(tmp, buflen);
+ iov[1] = evConsIovec(tmp, (int)buflen);
if (writev(statp->_vcsock, iov, 2) != (ssize_t)(INT16SZ + buflen)) {
*terrno = errno;
Perror(statp, stderr, "write failed", errno);
Home |
Main Index |
Thread Index |
Old Index