From: Thomas Weißschuh Date: Sun, 16 Apr 2023 07:13:34 +0000 (+0200) Subject: tests: constify a sysinfo helpers struct X-Git-Tag: v2.40-rc1~47^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a072613ba2aa9b47157c2512b5627cec2627bc88;p=thirdparty%2Futil-linux.git tests: constify a sysinfo helpers struct Signed-off-by: Thomas Weißschuh --- diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c index 81fbdd75f1..692a846017 100644 --- a/tests/helpers/test_sysinfo.c +++ b/tests/helpers/test_sysinfo.c @@ -125,7 +125,7 @@ static int hlp_fsopen_ok(void) return 0; } -static mntHlpfnc hlps[] = +static const mntHlpfnc hlps[] = { { "WORDSIZE", hlp_wordsize }, { "pagesize", hlp_pagesize }, @@ -145,7 +145,7 @@ static mntHlpfnc hlps[] = int main(int argc, char **argv) { int re = 0; - mntHlpfnc *fn; + const mntHlpfnc *fn; if (argc == 1) { for (fn = hlps; fn->name; fn++) {