Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern don't truncate size_t to int
details: https://anonhg.NetBSD.org/src/rev/f2e65ac8948e
branches: trunk
changeset: 781167:f2e65ac8948e
user: dholland <dholland%NetBSD.org@localhost>
date: Fri Aug 24 05:52:17 2012 +0000
description:
don't truncate size_t to int
diffstat:
sys/kern/vfs_vnops.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 14cfe25a2ceb -r f2e65ac8948e sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c Fri Aug 24 05:47:51 2012 +0000
+++ b/sys/kern/vfs_vnops.c Fri Aug 24 05:52:17 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_vnops.c,v 1.184 2012/04/05 07:26:36 hannken Exp $ */
+/* $NetBSD: vfs_vnops.c,v 1.185 2012/08/24 05:52:17 dholland Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.184 2012/04/05 07:26:36 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_vnops.c,v 1.185 2012/08/24 05:52:17 dholland Exp $");
#include "veriexec.h"
@@ -510,7 +510,8 @@
int flags)
{
struct vnode *vp = (struct vnode *)fp->f_data;
- int count, error, ioflag, fflag;
+ int error, ioflag, fflag;
+ size_t count;
ioflag = IO_ADV_ENCODE(fp->f_advice);
fflag = fp->f_flag;
@@ -540,7 +541,8 @@
int flags)
{
struct vnode *vp = (struct vnode *)fp->f_data;
- int count, error, ioflag, fflag;
+ int error, ioflag, fflag;
+ size_t count;
ioflag = IO_ADV_ENCODE(fp->f_advice) | IO_UNIT;
fflag = fp->f_flag;
Home |
Main Index |
Thread Index |
Old Index