Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/lint1 lint: do not allow the diagnostics to be...



details:   https://anonhg.NetBSD.org/src/rev/ca3cea1056e0
branches:  trunk
changeset: 961400:ca3cea1056e0
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Apr 18 08:07:04 2021 +0000

description:
lint: do not allow the diagnostics to be modified

diffstat:

 usr.bin/xlint/lint1/err.c      |  6 +++---
 usr.bin/xlint/lint1/externs1.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r aa48ed4843ce -r ca3cea1056e0 usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sun Apr 18 08:03:56 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Sun Apr 18 08:07:04 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: err.c,v 1.111 2021/04/14 21:20:02 christos Exp $       */
+/*     $NetBSD: err.c,v 1.112 2021/04/18 08:07:04 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.111 2021/04/14 21:20:02 christos Exp $");
+__RCSID("$NetBSD: err.c,v 1.112 2021/04/18 08:07:04 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -53,7 +53,7 @@
 int    sytxerr;
 
 
-const  char *msgs[] = {
+const char *const msgs[] = {
        "empty declaration",                                          /* 0 */
        "old style declaration; add 'int'",                           /* 1 */
        "empty declaration",                                          /* 2 */
diff -r aa48ed4843ce -r ca3cea1056e0 usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h    Sun Apr 18 08:03:56 2021 +0000
+++ b/usr.bin/xlint/lint1/externs1.h    Sun Apr 18 08:07:04 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: externs1.h,v 1.105 2021/04/14 20:06:40 rillig Exp $    */
+/*     $NetBSD: externs1.h,v 1.106 2021/04/18 08:07:04 rillig Exp $    */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -117,7 +117,7 @@
  */
 extern int     nerr;
 extern int     sytxerr;
-extern const   char *msgs[];
+extern const char *const msgs[];
 
 extern void    msglist(void);
 extern void    error(int, ...);



Home | Main Index | Thread Index | Old Index