]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: constify a sysinfo helpers struct
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 16 Apr 2023 07:13:34 +0000 (09:13 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Fri, 22 Dec 2023 10:45:16 +0000 (11:45 +0100)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/helpers/test_sysinfo.c

index 81fbdd75f183b0e9ed8733a77dcdc3dcc322762d..692a84601737c09cb67abaedb5e05e2165d9c6dd 100644 (file)
@@ -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++) {