Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/sysvbfs cosmetic change: fix two casts to be of the a...
details: https://anonhg.NetBSD.org/src/rev/52ee3aa89fb8
branches: trunk
changeset: 779696:52ee3aa89fb8
user: agc <agc%NetBSD.org@localhost>
date: Mon Jun 11 21:11:40 2012 +0000
description:
cosmetic change: fix two casts to be of the appropriate type
diffstat:
sys/fs/sysvbfs/bfs.c | 6 +++---
sys/fs/sysvbfs/sysvbfs_vnops.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 0ffbce44abed -r 52ee3aa89fb8 sys/fs/sysvbfs/bfs.c
--- a/sys/fs/sysvbfs/bfs.c Mon Jun 11 18:32:59 2012 +0000
+++ b/sys/fs/sysvbfs/bfs.c Mon Jun 11 21:11:40 2012 +0000
@@ -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 @@
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;
diff -r 0ffbce44abed -r 52ee3aa89fb8 sys/fs/sysvbfs/sysvbfs_vnops.c
--- a/sys/fs/sysvbfs/sysvbfs_vnops.c Mon Jun 11 18:32:59 2012 +0000
+++ b/sys/fs/sysvbfs/sysvbfs_vnops.c Mon Jun 11 21:11:40 2012 +0000
@@ -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 @@
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 =
Home |
Main Index |
Thread Index |
Old Index