Module Name: src Committed By: rillig Date: Sat Feb 20 16:51:18 UTC 2021
Modified Files: src/tests/usr.bin/xlint/lint1: d_init_pop_member.c Log Message: lint: fix typo in test for pop_member The leader of a city should rather be a mayor than a major. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint1/d_init_pop_member.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/d_init_pop_member.c diff -u src/tests/usr.bin/xlint/lint1/d_init_pop_member.c:1.3 src/tests/usr.bin/xlint/lint1/d_init_pop_member.c:1.4 --- src/tests/usr.bin/xlint/lint1/d_init_pop_member.c:1.3 Sun Jan 31 14:39:31 2021 +++ src/tests/usr.bin/xlint/lint1/d_init_pop_member.c Sat Feb 20 16:51:18 2021 @@ -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 person { }; struct city { - struct person major; + struct person mayor; }; struct state { @@ -36,7 +36,7 @@ struct state { 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 @@ void func(void) * 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 @@ void func(void) * 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 }; }