Module Name:    src
Committed By:   bouyer
Date:           Thu Apr 30 18:25:17 UTC 2009

Modified Files:
        src/lib/libc/db/hash [netbsd-4]: hash_buf.c

Log Message:
Pull up following revision(s) (requested by hauke in ticket #1311):
        lib/libc/db/hash/hash_buf.c: revision 1.17, 1.18
        lib/libc/db/hash/hash_buf.c: revision 1.18
Fix build fallout from ticket 1310


To generate a diff of this commit:
cvs rdiff -u -r1.11.10.2 -r1.11.10.3 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.11.10.2 src/lib/libc/db/hash/hash_buf.c:1.11.10.3
--- src/lib/libc/db/hash/hash_buf.c:1.11.10.2	Thu Apr 23 02:40:16 2009
+++ src/lib/libc/db/hash/hash_buf.c	Thu Apr 30 18:25:17 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: hash_buf.c,v 1.11.10.2 2009/04/23 02:40:16 snj Exp $	*/
+/*	$NetBSD: hash_buf.c,v 1.11.10.3 2009/04/30 18:25:17 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)hash_buf.c	8.5 (Berkeley) 7/15/94";
 #else
-__RCSID("$NetBSD: hash_buf.c,v 1.11.10.2 2009/04/23 02:40:16 snj Exp $");
+__RCSID("$NetBSD: hash_buf.c,v 1.11.10.3 2009/04/30 18:25:17 bouyer Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -334,7 +334,7 @@
 		/* Check if we are freeing stuff */
 		if (do_free) {
 			if (bp->page) {
-				(void)memset(bp->page, 0, hashp->BSIZE);
+				(void)memset(bp->page, 0, (size_t)hashp->BSIZE);
 				free(bp->page);
 			}
 			BUF_REMOVE(bp);

Reply via email to