Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/resolv silence lint.
details: https://anonhg.NetBSD.org/src/rev/788804a92e6a
branches: trunk
changeset: 566775:788804a92e6a
user: christos <christos%NetBSD.org@localhost>
date: Thu May 20 17:42:30 2004 +0000
description:
silence lint.
diffstat:
lib/libc/resolv/res_mkquery.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 6feffdc30883 -r 788804a92e6a lib/libc/resolv/res_mkquery.c
--- a/lib/libc/resolv/res_mkquery.c Thu May 20 17:41:00 2004 +0000
+++ b/lib/libc/resolv/res_mkquery.c Thu May 20 17:42:30 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: res_mkquery.c,v 1.1.1.1 2004/05/20 17:18:55 christos Exp $ */
+/* $NetBSD: res_mkquery.c,v 1.2 2004/05/20 17:42:30 christos Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -124,7 +124,7 @@
if ((buf == NULL) || (buflen < HFIXEDSZ))
return (-1);
memset(buf, 0, HFIXEDSZ);
- hp = (HEADER *) buf;
+ hp = (HEADER *)(void *)buf;
hp->id = htons(++statp->id);
hp->opcode = op;
hp->rd = (statp->options & RES_RECURSE) != 0U;
@@ -191,7 +191,7 @@
ns_put16(datalen, cp);
cp += INT16SZ;
if (datalen) {
- memcpy(cp, data, datalen);
+ memcpy(cp, data, (size_t)datalen);
cp += datalen;
}
hp->ancount = htons(1);
@@ -225,7 +225,7 @@
printf(";; res_nopt()\n");
#endif
- hp = (HEADER *) buf;
+ hp = (HEADER *)(void *)buf;
cp = buf + n0;
ep = buf + buflen;
Home |
Main Index |
Thread Index |
Old Index