Module Name:    src
Committed By:   rillig
Date:           Fri Jan 20 00:24:25 UTC 2023

Modified Files:
        src/usr.bin/indent: args.c

Log Message:
indent: fix misleading comment


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/usr.bin/indent/args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/indent/args.c
diff -u src/usr.bin/indent/args.c:1.72 src/usr.bin/indent/args.c:1.73
--- src/usr.bin/indent/args.c:1.72	Thu Nov 25 21:48:23 2021
+++ src/usr.bin/indent/args.c	Fri Jan 20 00:24:25 2023
@@ -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 @@ static char sccsid[] = "@(#)args.c	8.1 (
 
 #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 @@ add_typedefs_from_file(const char *fname
 	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);
     }

Reply via email to