Module Name: src
Committed By: rillig
Date: Sun Jan 3 16:59:59 UTC 2021
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_004.exp msg_035.exp msg_308.exp
src/usr.bin/xlint/lint1: decl.c err.c
Log Message:
lint: fix spelling of message 308
All other messages are lowercase as well.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint1/msg_004.exp
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/msg_035.exp
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/msg_308.exp
cvs rdiff -u -r1.103 -r1.104 src/usr.bin/xlint/lint1/decl.c
cvs rdiff -u -r1.61 -r1.62 src/usr.bin/xlint/lint1/err.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/xlint/lint1/msg_004.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_004.exp:1.2 src/tests/usr.bin/xlint/lint1/msg_004.exp:1.3
--- src/tests/usr.bin/xlint/lint1/msg_004.exp:1.2 Sat Jan 2 18:06:01 2021
+++ src/tests/usr.bin/xlint/lint1/msg_004.exp Sun Jan 3 16:59:59 2021
@@ -1,4 +1,4 @@
-msg_004.c(13): Invalid type for _Complex [308]
+msg_004.c(13): invalid type for _Complex [308]
msg_004.c(13): illegal type combination [4]
msg_004.c(17): illegal type combination [4]
msg_004.c(21): illegal type combination [4]
Index: src/tests/usr.bin/xlint/lint1/msg_035.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_035.exp:1.5 src/tests/usr.bin/xlint/lint1/msg_035.exp:1.6
--- src/tests/usr.bin/xlint/lint1/msg_035.exp:1.5 Sat Jan 2 17:17:00 2021
+++ src/tests/usr.bin/xlint/lint1/msg_035.exp Sun Jan 3 16:59:59 2021
@@ -12,7 +12,7 @@ msg_035.c(52): warning: illegal bit-fiel
msg_035.c(54): warning: illegal bit-field type [35]
msg_035.c(55): warning: illegal bit-field type [35]
msg_035.c(56): warning: illegal bit-field type [35]
-msg_035.c(57): Invalid type for _Complex [308]
+msg_035.c(57): invalid type for _Complex [308]
msg_035.c(57): warning: illegal bit-field type [35]
msg_035.c(58): warning: illegal bit-field type [35]
msg_035.c(59): warning: illegal bit-field type [35]
Index: src/tests/usr.bin/xlint/lint1/msg_308.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_308.exp:1.3 src/tests/usr.bin/xlint/lint1/msg_308.exp:1.4
--- src/tests/usr.bin/xlint/lint1/msg_308.exp:1.3 Sat Jan 2 17:17:00 2021
+++ src/tests/usr.bin/xlint/lint1/msg_308.exp Sun Jan 3 16:59:59 2021
@@ -1,3 +1,3 @@
-msg_308.c(9): Invalid type for _Complex [308]
-msg_308.c(10): Invalid type for _Complex [308]
+msg_308.c(9): invalid type for _Complex [308]
+msg_308.c(10): invalid type for _Complex [308]
msg_308.c(10): illegal type combination [4]
Index: src/usr.bin/xlint/lint1/decl.c
diff -u src/usr.bin/xlint/lint1/decl.c:1.103 src/usr.bin/xlint/lint1/decl.c:1.104
--- src/usr.bin/xlint/lint1/decl.c:1.103 Sat Jan 2 18:44:58 2021
+++ src/usr.bin/xlint/lint1/decl.c Sun Jan 3 16:59:59 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.103 2021/01/02 18:44:58 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.104 2021/01/03 16:59:59 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.103 2021/01/02 18:44:58 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.104 2021/01/03 16:59:59 rillig Exp $");
#endif
#include <sys/param.h>
@@ -304,7 +304,7 @@ add_type(type_t *tp)
else if (dcs->d_cmod == DOUBLE)
t = DCOMPLEX;
else {
- /* Invalid type for _Complex */
+ /* invalid type for _Complex */
error(308);
t = DCOMPLEX; /* just as a fallback */
}
Index: src/usr.bin/xlint/lint1/err.c
diff -u src/usr.bin/xlint/lint1/err.c:1.61 src/usr.bin/xlint/lint1/err.c:1.62
--- src/usr.bin/xlint/lint1/err.c:1.61 Sun Jan 3 15:51:16 2021
+++ src/usr.bin/xlint/lint1/err.c Sun Jan 3 16:59:59 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: err.c,v 1.61 2021/01/03 15:51:16 rillig Exp $ */
+/* $NetBSD: err.c,v 1.62 2021/01/03 16:59:59 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.61 2021/01/03 15:51:16 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.62 2021/01/03 16:59:59 rillig Exp $");
#endif
#include <sys/types.h>
@@ -367,7 +367,7 @@ const char *msgs[] = {
"ANSI C forbids conversion of %s to %s, op %s", /* 305 */
"constant truncated by conversion, op %s", /* 306 */
"static variable %s set but not used", /* 307 */
- "Invalid type for _Complex", /* 308 */
+ "invalid type for _Complex", /* 308 */
"extra bits set to 0 in conversion of '%s' to '%s', op %s", /* 309 */
"symbol renaming can't be used on function arguments", /* 310 */
"symbol renaming can't be used on automatic variables", /* 311 */