cosmetic change: fix two casts to be of the appropriate type

This commit is contained in:
agc 2012-06-11 21:11:40 +00:00
parent 8d31656afc
commit 6b981736db
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: bfs.c,v 1.15 2012/05/08 14:28:55 tsutsui Exp $ */
/* $NetBSD: bfs.c,v 1.16 2012/06/11 21:11:40 agc Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -31,7 +31,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: bfs.c,v 1.15 2012/05/08 14:28:55 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: bfs.c,v 1.16 2012/06/11 21:11:40 agc Exp $");
#define BFS_DEBUG
#include <sys/param.h>
@ -629,7 +629,7 @@ bfs_inode_set_attr(const struct bfs *bfs, struct bfs_inode *inode,
if (from != NULL) {
if (from->uid != (uid_t)-1)
to->uid = from->uid;
if (from->gid != (uid_t)-1)
if (from->gid != (gid_t)-1)
to->gid = from->gid;
if (from->mode != (mode_t)-1)
to->mode = from->mode;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysvbfs_vnops.c,v 1.45 2012/05/08 14:28:55 tsutsui Exp $ */
/* $NetBSD: sysvbfs_vnops.c,v 1.46 2012/06/11 21:11:41 agc Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.45 2012/05/08 14:28:55 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vnops.c,v 1.46 2012/06/11 21:11:41 agc Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -350,7 +350,7 @@ sysvbfs_setattr(void *arg)
if (vap->va_flags != VNOVAL)
return EOPNOTSUPP;
if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (uid_t)VNOVAL) {
if (vap->va_uid != (uid_t)VNOVAL || vap->va_gid != (gid_t)VNOVAL) {
uid_t uid =
(vap->va_uid != (uid_t)VNOVAL) ? vap->va_uid : attr->uid;
gid_t gid =