Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/resolv two more type casts after type changes
details: https://anonhg.NetBSD.org/src/rev/df421f2eac07
branches: trunk
changeset: 784981:df421f2eac07
user: para <para%NetBSD.org@localhost>
date: Sat Feb 16 13:45:45 2013 +0000
description:
two more type casts after type changes
diffstat:
lib/libc/resolv/res_send.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r aa1732f3827f -r df421f2eac07 lib/libc/resolv/res_send.c
--- a/lib/libc/resolv/res_send.c Sat Feb 16 13:37:01 2013 +0000
+++ b/lib/libc/resolv/res_send.c Sat Feb 16 13:45:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: res_send.c,v 1.28 2013/02/16 13:37:01 christos Exp $ */
+/* $NetBSD: res_send.c,v 1.29 2013/02/16 13:45:45 para 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.28 2013/02/16 13:37:01 christos Exp $");
+__RCSID("$NetBSD: res_send.c,v 1.29 2013/02/16 13:45:45 para Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -516,7 +516,7 @@
if (v_circuit) {
/* Use VC; at most one attempt per server. */
tries = statp->retry;
- n = send_vc(statp, buf, buflen, ans, anssiz, &terrno,
+ n = send_vc(statp, buf, (size_t)buflen, ans, anssiz, &terrno,
ns);
if (n < 0)
goto fail;
@@ -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, (int)buflen);
+ iov[1] = evConsIovec(tmp, (size_t)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