Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/smbfs remove bogus (u_long) cast for uvm_vnp_setsize(...
details: https://anonhg.NetBSD.org/src/rev/39dc2597ff17
branches: trunk
changeset: 543355:39dc2597ff17
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Feb 23 21:54:05 2003 +0000
description:
remove bogus (u_long) cast for uvm_vnp_setsize() arg in smbfs_setattr()
diffstat:
sys/fs/smbfs/smbfs_vnops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 7162913bd3ca -r 39dc2597ff17 sys/fs/smbfs/smbfs_vnops.c
--- a/sys/fs/smbfs/smbfs_vnops.c Sun Feb 23 21:44:26 2003 +0000
+++ b/sys/fs/smbfs/smbfs_vnops.c Sun Feb 23 21:54:05 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smbfs_vnops.c,v 1.8 2003/02/23 17:28:48 jdolecek Exp $ */
+/* $NetBSD: smbfs_vnops.c,v 1.9 2003/02/23 21:54:05 jdolecek Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -416,9 +416,9 @@
if (isreadonly)
return EROFS;
doclose = 0;
- uvm_vnp_setsize(vp, (u_long)vap->va_size);
tsize = np->n_size;
np->n_size = vap->va_size;
+ uvm_vnp_setsize(vp, vap->va_size);
if (np->n_opencount == 0) {
error = smbfs_smb_open(np, SMB_AM_OPENRW, &scred);
if (error == 0)
@@ -430,8 +430,8 @@
smbfs_smb_close(ssp, np->n_fid, NULL, &scred);
if (error) {
np->n_size = tsize;
- uvm_vnp_setsize(vp, (u_long)tsize);
- return error;
+ uvm_vnp_setsize(vp, tsize);
+ return (error);
}
}
mtime = atime = NULL;
Home |
Main Index |
Thread Index |
Old Index