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 outdated comment, add 'const'



details:   https://anonhg.NetBSD.org/src/rev/38cd2c47f04d
branches:  trunk
changeset: 1023975:38cd2c47f04d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Oct 05 19:58:38 2021 +0000

description:
indent: fix outdated comment, add 'const'

diffstat:

 usr.bin/indent/pr_comment.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r f98f5690da24 -r 38cd2c47f04d usr.bin/indent/pr_comment.c
--- a/usr.bin/indent/pr_comment.c       Tue Oct 05 19:43:05 2021 +0000
+++ b/usr.bin/indent/pr_comment.c       Tue Oct 05 19:58:38 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pr_comment.c,v 1.52 2021/10/05 06:49:19 rillig Exp $   */
+/*     $NetBSD: pr_comment.c,v 1.53 2021/10/05 19:58:38 rillig Exp $   */
 
 /*-
  * SPDX-License-Identifier: BSD-4-Clause
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__NetBSD__)
-__RCSID("$NetBSD: pr_comment.c,v 1.52 2021/10/05 06:49:19 rillig Exp $");
+__RCSID("$NetBSD: pr_comment.c,v 1.53 2021/10/05 19:58:38 rillig Exp $");
 #elif defined(__FreeBSD__)
 __FBSDID("$FreeBSD: head/usr.bin/indent/pr_comment.c 334927 2018-06-10 16:44:18Z pstef $");
 #endif
@@ -143,13 +143,13 @@
     if (ps.box_com) {
        /*
         * Find out how much indentation there was originally, because that
-        * much will have to be ignored by pad_output() in dump_line(). This
-        * is a box comment, so nothing changes -- not even indentation.
+        * much will have to be ignored by dump_line(). This is a box comment,
+        * so nothing changes -- not even indentation.
         *
         * The comment we're about to read usually comes from in_buffer,
         * unless it has been copied into save_com.
         */
-       char *start;
+       const char *start;
 
        /*
         * XXX: ordered comparison between pointers from different objects



Home | Main Index | Thread Index | Old Index