aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2021-06-08 14:03:38 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-28 11:14:54 +0100
commit0b845d3b3fde40e72c5372d6fa0f129b5e45c363 (patch)
tree77b71beac6b602cb430293fc931ce7977b233382
parent37db2657c92da3bc50128feed53b3f58739a9b19 (diff)
downloadglibc-0b845d3b3fde40e72c5372d6fa0f129b5e45c363.zip
glibc-0b845d3b3fde40e72c5372d6fa0f129b5e45c363.tar.gz
glibc-0b845d3b3fde40e72c5372d6fa0f129b5e45c363.tar.bz2
scripts: Use bool in tunables initializer
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>
-rw-r--r--scripts/gen-tunables.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen-tunables.awk b/scripts/gen-tunables.awk
index fa63e86..d6de100 100644
--- a/scripts/gen-tunables.awk
+++ b/scripts/gen-tunables.awk
@@ -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]);
}