Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/chown KNF: no space after ( and before ), constants on ...
details: https://anonhg.NetBSD.org/src/rev/fb2df3f9a71e
branches: trunk
changeset: 374572:fb2df3f9a71e
user: christos <christos%NetBSD.org@localhost>
date: Thu May 04 18:34:55 2023 +0000
description:
KNF: no space after ( and before ), constants on the RHS (like everywhere else
in this file).
diffstat:
sbin/chown/chown.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r a08d159cda97 -r fb2df3f9a71e sbin/chown/chown.c
--- a/sbin/chown/chown.c Thu May 04 18:04:55 2023 +0000
+++ b/sbin/chown/chown.c Thu May 04 18:34:55 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chown.c,v 1.11 2023/05/04 18:04:55 martin Exp $ */
+/* $NetBSD: chown.c,v 1.12 2023/05/04 18:34:55 christos Exp $ */
/*
* Copyright (c) 1988, 1993, 1994, 2003
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: chown.c,v 1.11 2023/05/04 18:04:55 martin Exp $");
+__RCSID("$NetBSD: chown.c,v 1.12 2023/05/04 18:34:55 christos Exp $");
#endif
#endif /* not lint */
@@ -242,9 +242,9 @@ main(int argc, char **argv)
* attempt to update.
*/
if (dflag &&
- ( (uid_t)-1 == uid || p->fts_statp->st_uid == uid ) &&
- ( (gid_t)-1 == gid || p->fts_statp->st_gid == gid ) &&
- ( p->fts_statp->st_mode & 07000 ) == 0)
+ (uid == (uid_t)-1 || p->fts_statp->st_uid == uid) &&
+ (gid == (gid_t)-1 || p->fts_statp->st_gid == gid) &&
+ (p->fts_statp->st_mode & 07000) == 0)
continue;
if ((*change_owner)(p->fts_accpath, uid, gid) && !fflag) {
Home |
Main Index |
Thread Index |
Old Index