]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
scripts: Use bool in tunables initializer
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 8 Jun 2021 13:03:38 +0000 (14:03 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 28 Oct 2022 10:14:54 +0000 (11:14 +0100)
The initializer for a tunable_t set the bool initialized flag to NULL.
This causes a build failure when pointer to bool conversion warns.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
scripts/gen-tunables.awk

index fa63e86d1a51fe61ed7b5f609b27975ce4d4e9c6..d6de100df0bbfc889a9b5ee063ebd69072ba6313 100644 (file)
@@ -177,7 +177,7 @@ END {
     n = indices[2];
     m = indices[3];
     printf ("  {TUNABLE_NAME_S(%s, %s, %s)", t, n, m)
-    printf (", {TUNABLE_TYPE_%s, %s, %s}, {%s}, NULL, TUNABLE_SECLEVEL_%s, %s},\n",
+    printf (", {TUNABLE_TYPE_%s, %s, %s}, {%s}, false, TUNABLE_SECLEVEL_%s, %s},\n",
            types[t,n,m], minvals[t,n,m], maxvals[t,n,m],
            default_val[t,n,m], security_level[t,n,m], env_alias[t,n,m]);
   }