Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/indent indent: fix misleading comment



details:   https://anonhg.NetBSD.org/src/rev/522f1baecaf8
branches:  trunk
changeset: 373130:522f1baecaf8
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Jan 20 00:24:25 2023 +0000

description:
indent: fix misleading comment

diffstat:

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

diffs (27 lines):

diff -r e3a85c15f8d6 -r 522f1baecaf8 usr.bin/indent/args.c
--- a/usr.bin/indent/args.c     Thu Jan 19 23:26:14 2023 +0000
+++ b/usr.bin/indent/args.c     Fri Jan 20 00:24:25 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: args.c,v 1.72 2021/11/25 21:48:23 rillig Exp $ */
+/*     $NetBSD: args.c,v 1.73 2023/01/20 00:24:25 rillig Exp $ */
 
 /*-
  * SPDX-License-Identifier: BSD-4-Clause
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__NetBSD__)
-__RCSID("$NetBSD: args.c,v 1.72 2021/11/25 21:48:23 rillig Exp $");
+__RCSID("$NetBSD: args.c,v 1.73 2023/01/20 00:24:25 rillig Exp $");
 #elif defined(__FreeBSD__)
 __FBSDID("$FreeBSD: head/usr.bin/indent/args.c 336318 2018-07-15 21:04:21Z pstef $");
 #endif
@@ -139,7 +139,7 @@
        exit(1);
     }
     while ((fgets(line, BUFSIZ, file)) != NULL) {
-       /* Remove trailing whitespace */
+       /* Only keep the first word of the line. */
        line[strcspn(line, " \t\n\r")] = '\0';
        register_typename(line);
     }



Home | Main Index | Thread Index | Old Index