Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/man man.c: minor KNF



details:   https://anonhg.NetBSD.org/src/rev/f7df05a4274f
branches:  trunk
changeset: 366019:f7df05a4274f
user:      gutteridge <gutteridge%NetBSD.org@localhost>
date:      Tue May 10 00:42:00 2022 +0000

description:
man.c: minor KNF

diffstat:

 usr.bin/man/man.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ab792a15dbfa -r f7df05a4274f usr.bin/man/man.c
--- a/usr.bin/man/man.c Mon May 09 21:41:49 2022 +0000
+++ b/usr.bin/man/man.c Tue May 10 00:42:00 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: man.c,v 1.72 2022/03/08 23:13:05 rillig Exp $  */
+/*     $NetBSD: man.c,v 1.73 2022/05/10 00:42:00 gutteridge Exp $      */
 
 /*
  * Copyright (c) 1987, 1993, 1994, 1995
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)man.c      8.17 (Berkeley) 1/31/95";
 #else
-__RCSID("$NetBSD: man.c,v 1.72 2022/03/08 23:13:05 rillig Exp $");
+__RCSID("$NetBSD: man.c,v 1.73 2022/05/10 00:42:00 gutteridge Exp $");
 #endif
 #endif /* not lint */
 
@@ -932,7 +932,7 @@
                ++p;
 
        /* make sure it's "more", not "morex" */
-       if (!strncmp(p, "more", 4) && (!p[4] || isspace((unsigned char)p[4]))){
+       if (!strncmp(p, "more", 4) && (!p[4] || isspace((unsigned char)p[4]))) {
                char *newname;
                (void)asprintf(&newname, "%s %s", p, "-s");
                name = newname;



Home | Main Index | Thread Index | Old Index