Module Name: src
Committed By: snj
Date: Thu Apr 23 23:31:16 UTC 2009
Modified Files:
src/lib/libc/db/hash [netbsd-5]: hash_buf.c
Log Message:
Pull up following revision(s) (requested by agc in ticket #723):
lib/libc/db/hash/hash_buf.c: revision 1.18
correct cast to size_t.
To generate a diff of this commit:
cvs rdiff -u -r1.14.4.3 -r1.14.4.4 src/lib/libc/db/hash/hash_buf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/db/hash/hash_buf.c
diff -u src/lib/libc/db/hash/hash_buf.c:1.14.4.3 src/lib/libc/db/hash/hash_buf.c:1.14.4.4
--- src/lib/libc/db/hash/hash_buf.c:1.14.4.3 Thu Apr 23 23:30:30 2009
+++ src/lib/libc/db/hash/hash_buf.c Thu Apr 23 23:31:16 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: hash_buf.c,v 1.14.4.3 2009/04/23 23:30:30 snj Exp $ */
+/* $NetBSD: hash_buf.c,v 1.14.4.4 2009/04/23 23:31:16 snj Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -37,7 +37,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: hash_buf.c,v 1.14.4.3 2009/04/23 23:30:30 snj Exp $");
+__RCSID("$NetBSD: hash_buf.c,v 1.14.4.4 2009/04/23 23:31:16 snj Exp $");
/*
* PACKAGE: hash
@@ -315,7 +315,7 @@
/* Check if we are freeing stuff */
if (do_free) {
if (bp->page) {
- (void)memset(bp->page, 0, (unsigned)hashp->BSIZE);
+ (void)memset(bp->page, 0, (size_t)hashp->BSIZE);
free(bp->page);
}
BUF_REMOVE(bp);