Module Name:    src
Committed By:   christos
Date:           Thu Apr 23 22:09:23 UTC 2009

Modified Files:
        src/lib/libc/db/hash: hash_buf.c

Log Message:
correct cast to size_t.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 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.17 src/lib/libc/db/hash/hash_buf.c:1.18
--- src/lib/libc/db/hash/hash_buf.c:1.17	Wed Apr 22 23:49:39 2009
+++ src/lib/libc/db/hash/hash_buf.c	Thu Apr 23 18:09:23 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: hash_buf.c,v 1.17 2009/04/23 03:49:39 agc Exp $	*/
+/*	$NetBSD: hash_buf.c,v 1.18 2009/04/23 22:09:23 christos Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -37,7 +37,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: hash_buf.c,v 1.17 2009/04/23 03:49:39 agc Exp $");
+__RCSID("$NetBSD: hash_buf.c,v 1.18 2009/04/23 22:09:23 christos 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);

Reply via email to