Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libresolv fix lint
details: https://anonhg.NetBSD.org/src/rev/a5fc2457a47a
branches: trunk
changeset: 782712:a5fc2457a47a
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 16 02:16:38 2012 +0000
description:
fix lint
diffstat:
lib/libresolv/dst_api.c | 9 +++++----
lib/libresolv/hmac_link.c | 6 +++---
lib/libresolv/ns_verify.c | 4 ++--
3 files changed, 10 insertions(+), 9 deletions(-)
diffs (77 lines):
diff -r 00d5fa549309 -r a5fc2457a47a lib/libresolv/dst_api.c
--- a/lib/libresolv/dst_api.c Fri Nov 16 02:11:05 2012 +0000
+++ b/lib/libresolv/dst_api.c Fri Nov 16 02:16:38 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dst_api.c,v 1.2 2012/11/16 02:10:26 joerg Exp $ */
+/* $NetBSD: dst_api.c,v 1.3 2012/11/16 02:16:38 christos Exp $ */
/*
* Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc.
@@ -40,7 +40,7 @@
#if 0
static const char rcsid[] = "Header: /proj/cvs/prod/libbind/dst/dst_api.c,v 1.17 2007/09/24 17:18:25 each Exp ";
#else
-__RCSID("$NetBSD: dst_api.c,v 1.2 2012/11/16 02:10:26 joerg Exp $");
+__RCSID("$NetBSD: dst_api.c,v 1.3 2012/11/16 02:16:38 christos Exp $");
#endif
@@ -437,10 +437,11 @@
/* Do not overwrite an existing file */
if ((fp = dst_s_fopen(file, "w", 0600)) != NULL) {
ssize_t nn;
- /*LINTED*/
- if ((nn = fwrite(encoded_block, 1, len, fp)) != len) {
+ nn = fwrite(encoded_block, 1, len, fp);
+ if (nn != len) {
EREPORT(("%s: Write failure on %s %d != %zd"
" errno=%d\n", __func__, file, len, nn, errno));
+
fclose(fp);
return (-5);
}
diff -r 00d5fa549309 -r a5fc2457a47a lib/libresolv/hmac_link.c
--- a/lib/libresolv/hmac_link.c Fri Nov 16 02:11:05 2012 +0000
+++ b/lib/libresolv/hmac_link.c Fri Nov 16 02:16:38 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hmac_link.c,v 1.1 2012/11/15 18:48:48 christos Exp $ */
+/* $NetBSD: hmac_link.c,v 1.2 2012/11/16 02:16:38 christos Exp $ */
/*
* Portions Copyright (c) 1995-1998 by Trusted Information Systems, Inc.
@@ -20,7 +20,7 @@
#if 0
static const char rcsid[] = "Header: /proj/cvs/prod/libbind/dst/hmac_link.c,v 1.8 2007/09/24 17:18:25 each Exp ";
#else
-__RCSID("$NetBSD: hmac_link.c,v 1.1 2012/11/15 18:48:48 christos Exp $");
+__RCSID("$NetBSD: hmac_link.c,v 1.2 2012/11/16 02:16:38 christos Exp $");
#endif
/*%
@@ -103,7 +103,7 @@
}
if ((mode & SIG_MODE_UPDATE) && (data && len > 0))
- MD5Update(ctx, data, len);
+ MD5Update(ctx, data, (unsigned int)len);
if (mode & SIG_MODE_FINAL) {
if (signature == NULL || sig_len < MD5_LEN)
diff -r 00d5fa549309 -r a5fc2457a47a lib/libresolv/ns_verify.c
--- a/lib/libresolv/ns_verify.c Fri Nov 16 02:11:05 2012 +0000
+++ b/lib/libresolv/ns_verify.c Fri Nov 16 02:16:38 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ns_verify.c,v 1.1 2012/11/15 18:48:48 christos Exp $ */
+/* $NetBSD: ns_verify.c,v 1.2 2012/11/16 02:16:38 christos Exp $ */
/*
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -461,7 +461,7 @@
buf, (int)(cp2 - buf), NULL, 0);
n = dst_verify_data(SIG_MODE_FINAL, state->key, &state->ctx, NULL, 0,
- sigstart, sigfieldlen);
+ sigstart, (int)sigfieldlen);
if (n < 0)
return (-ns_r_badsig);
Home |
Main Index |
Thread Index |
Old Index