Source-Changes-HG archive

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

[src/trunk]: src/tests/usr.bin/xlint/lint1 tests/lint: refine comment and fun...



details:   https://anonhg.NetBSD.org/src/rev/c722b1b80617
branches:  trunk
changeset: 961071:c722b1b80617
user:      rillig <rillig%NetBSD.org@localhost>
date:      Thu Apr 08 19:31:51 2021 +0000

description:
tests/lint: refine comment and function name in test for pointer cast

In a typical NetBSD build, there are about 100,000 lint warnings.  About
50,000 of them are warning 247.  About 38,000 of these are from OpenSSL
and may be fixed by now.

diffstat:

 tests/usr.bin/xlint/lint1/msg_247.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r e7f747aa03f9 -r c722b1b80617 tests/usr.bin/xlint/lint1/msg_247.c
--- a/tests/usr.bin/xlint/lint1/msg_247.c       Thu Apr 08 19:20:54 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/msg_247.c       Thu Apr 08 19:31:51 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_247.c,v 1.10 2021/04/08 19:20:54 rillig Exp $      */
+/*     $NetBSD: msg_247.c,v 1.11 2021/04/08 19:31:51 rillig Exp $      */
 # 3 "msg_247.c"
 
 // Test for message: pointer cast from '%s' to '%s' may be troublesome [247]
@@ -85,8 +85,8 @@
  * first member.  C guarantees that the pointer to the first member is at the
  * same address as the pointer to the whole struct.
  *
- * Seen in external/mpl/bind/dist/lib/isc/mem.c for struct isc_mem and
- * isc__mem.
+ * Seen in external/mpl/bind/dist/lib/isc/mem.c for 'struct isc_mem' and
+ * 'struct isc__mem'.
  */
 
 struct counter {
@@ -101,7 +101,7 @@
 void *allocate(void);
 
 struct counter *
-new_type_interface(void)
+counter_new(void)
 {
        struct counter_impl *impl = allocate();
        impl->public_part.count = 12345;



Home | Main Index | Thread Index | Old Index