Module Name: src Committed By: rillig Date: Sun Apr 18 08:07:04 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: err.c externs1.h Log Message: lint: do not allow the diagnostics to be modified To generate a diff of this commit: cvs rdiff -u -r1.111 -r1.112 src/usr.bin/xlint/lint1/err.c cvs rdiff -u -r1.105 -r1.106 src/usr.bin/xlint/lint1/externs1.h 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/xlint/lint1/err.c diff -u src/usr.bin/xlint/lint1/err.c:1.111 src/usr.bin/xlint/lint1/err.c:1.112 --- src/usr.bin/xlint/lint1/err.c:1.111 Wed Apr 14 21:20:02 2021 +++ src/usr.bin/xlint/lint1/err.c Sun Apr 18 08:07:04 2021 @@ -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 nerr; int sytxerr; -const char *msgs[] = { +const char *const msgs[] = { "empty declaration", /* 0 */ "old style declaration; add 'int'", /* 1 */ "empty declaration", /* 2 */ Index: src/usr.bin/xlint/lint1/externs1.h diff -u src/usr.bin/xlint/lint1/externs1.h:1.105 src/usr.bin/xlint/lint1/externs1.h:1.106 --- src/usr.bin/xlint/lint1/externs1.h:1.105 Wed Apr 14 20:06:40 2021 +++ src/usr.bin/xlint/lint1/externs1.h Sun Apr 18 08:07:04 2021 @@ -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 void expr_restore_memory(struct m */ extern int nerr; extern int sytxerr; -extern const char *msgs[]; +extern const char *const msgs[]; extern void msglist(void); extern void error(int, ...);