Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/pax minor KNF nits.



details:   https://anonhg.NetBSD.org/src/rev/67f381f2a7d5
branches:  trunk
changeset: 488081:67f381f2a7d5
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jun 17 18:19:10 2000 +0000

description:
minor KNF nits.

diffstat:

 bin/pax/file_subs.c |  7 ++++---
 bin/pax/gen_subs.c  |  8 +++++---
 2 files changed, 9 insertions(+), 6 deletions(-)

diffs (58 lines):

diff -r 50fe87598af4 -r 67f381f2a7d5 bin/pax/file_subs.c
--- a/bin/pax/file_subs.c       Sat Jun 17 18:00:47 2000 +0000
+++ b/bin/pax/file_subs.c       Sat Jun 17 18:19:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: file_subs.c,v 1.18 2000/03/13 22:46:59 soren Exp $     */
+/*     $NetBSD: file_subs.c,v 1.19 2000/06/17 18:19:10 mrg Exp $       */
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)file_subs.c        8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: file_subs.c,v 1.18 2000/03/13 22:46:59 soren Exp $");
+__RCSID("$NetBSD: file_subs.c,v 1.19 2000/06/17 18:19:10 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -805,8 +805,9 @@
        u_int32_t flags;
 #endif
 {
+       
 #if 0
-       if (chflags(fnm, flags) < 0)
+       if (chflags(fnm, flags) < 0 && errno != EOPNOTSUPP)
                syswarn(1, errno, "Could not set file flags on %s", fnm);
 #endif
        return;
diff -r 50fe87598af4 -r 67f381f2a7d5 bin/pax/gen_subs.c
--- a/bin/pax/gen_subs.c        Sat Jun 17 18:00:47 2000 +0000
+++ b/bin/pax/gen_subs.c        Sat Jun 17 18:19:10 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gen_subs.c,v 1.17 2000/02/17 03:12:24 itohy Exp $      */
+/*     $NetBSD: gen_subs.c,v 1.18 2000/06/17 18:19:10 mrg Exp $        */
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: gen_subs.c,v 1.17 2000/02/17 03:12:24 itohy Exp $");
+__RCSID("$NetBSD: gen_subs.c,v 1.18 2000/06/17 18:19:10 mrg Exp $");
 #endif
 #endif /* not lint */
 
@@ -501,7 +501,9 @@
 #endif
 
 int
-check_Aflag(void) {
+check_Aflag(void)
+{
+
        if (Aflag > 0)
                return 1;
        if (Aflag == 0) {



Home | Main Index | Thread Index | Old Index