Module Name: src
Committed By: rillig
Date: Mon May 30 23:27:45 UTC 2022
Modified Files:
src/tests/usr.bin/xlint/lint2: msg_000.ln
src/usr.bin/xlint/lint2: chk.c
Log Message:
lint: clean up comments
No binary change.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint2/msg_000.ln
cvs rdiff -u -r1.48 -r1.49 src/usr.bin/xlint/lint2/chk.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/lint2/msg_000.ln
diff -u src/tests/usr.bin/xlint/lint2/msg_000.ln:1.3 src/tests/usr.bin/xlint/lint2/msg_000.ln:1.4
--- src/tests/usr.bin/xlint/lint2/msg_000.ln:1.3 Sun Sep 12 16:07:16 2021
+++ src/tests/usr.bin/xlint/lint2/msg_000.ln Mon May 30 23:27:45 2022
@@ -1,4 +1,4 @@
-# $NetBSD: msg_000.ln,v 1.3 2021/09/12 16:07:16 rillig Exp $
+# $NetBSD: msg_000.ln,v 1.4 2022/05/30 23:27:45 rillig Exp $
#
# Test data for message 0 of lint2:
# %s used( %s ), but not defined
@@ -24,7 +24,7 @@ S msg_000.c
# 'p1' argument 1 is a positive constant
# 'i' the return value of the function call is ignored
# '16...' the name of the called function
-# 'f2' it's a function with 2 arguments
+# 'f2' the function is called with 2 arguments
# 'I' the first argument has type 'int'
# 'D' the first argument has type 'double'
# 'I' the return type of the function is (implicitly) 'int'
Index: src/usr.bin/xlint/lint2/chk.c
diff -u src/usr.bin/xlint/lint2/chk.c:1.48 src/usr.bin/xlint/lint2/chk.c:1.49
--- src/usr.bin/xlint/lint2/chk.c:1.48 Fri May 20 21:18:55 2022
+++ src/usr.bin/xlint/lint2/chk.c Mon May 30 23:27:45 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: chk.c,v 1.48 2022/05/20 21:18:55 rillig Exp $ */
+/* $NetBSD: chk.c,v 1.49 2022/05/30 23:27:45 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: chk.c,v 1.48 2022/05/20 21:18:55 rillig Exp $");
+__RCSID("$NetBSD: chk.c,v 1.49 2022/05/30 23:27:45 rillig Exp $");
#endif
#include <ctype.h>
@@ -264,12 +264,13 @@ chkvtui(const hte_t *hte, sym_t *def, sy
* union, also if the return value is ignored.
* This is necessary because the caller must
* allocate stack space for the return value.
- * If it does not, the return value would over-
- * write other data.
- * XXX Following massage may be confusing
+ * If it does not, the return value would
+ * overwrite other data.
+ *
+ * XXX Following message may be confusing
* because it appears also if the return value
* was declared inconsistently. But this
- * behavior matches pcc based lint, so it is
+ * behavior matches pcc-based lint, so it is
* accepted for now.
*/
pos1 = xstrdup(mkpos(&def->s_pos));