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 lint: fix typo in test for pop_member



details:   https://anonhg.NetBSD.org/src/rev/44ec23bab86e
branches:  trunk
changeset: 952882:44ec23bab86e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Feb 20 16:51:18 2021 +0000

description:
lint: fix typo in test for pop_member

The leader of a city should rather be a mayor than a major.

diffstat:

 tests/usr.bin/xlint/lint1/d_init_pop_member.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 4fbec6ba1904 -r 44ec23bab86e tests/usr.bin/xlint/lint1/d_init_pop_member.c
--- a/tests/usr.bin/xlint/lint1/d_init_pop_member.c     Sat Feb 20 16:34:57 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_init_pop_member.c     Sat Feb 20 16:51:18 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: d_init_pop_member.c,v 1.3 2021/01/31 14:39:31 rillig Exp $     */
+/*     $NetBSD: d_init_pop_member.c,v 1.4 2021/02/20 16:51:18 rillig Exp $     */
 # 3 "d_init_pop_member.c"
 
 /*
@@ -26,7 +26,7 @@
 };
 
 struct city {
-       struct person major;
+       struct person mayor;
 };
 
 struct state {
@@ -36,7 +36,7 @@
 void func(void)
 {
        struct state st = {
-           .capital.major.hobbies.dancing = 1,
+           .capital.mayor.hobbies.dancing = 1,
            /*
             * Since 2015-07-28:
             * wrong "undefined struct/union member: capital [101]"
@@ -45,7 +45,7 @@
             * Before init.c 1.52 from 2020-01-01:
             * wrong "warning: bit-field initializer does not fit [180]"
             */
-           .capital.major.favorite_color.green = 0xFF,
+           .capital.mayor.favorite_color.green = 0xFF,
            /*
             * Since 2015-07-28:
             * wrong "undefined struct/union member: capital [101]"
@@ -54,6 +54,6 @@
             * Before init.c 1.52 from 2020-01-01:
             * wrong "warning: bit-field initializer does not fit [180]"
             */
-           .capital.major.favorite_color.red = 0xFF
+           .capital.mayor.favorite_color.red = 0xFF
        };
 }



Home | Main Index | Thread Index | Old Index