diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-06-08 14:03:38 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-28 11:14:54 +0100 |
commit | 0b845d3b3fde40e72c5372d6fa0f129b5e45c363 (patch) | |
tree | 77b71beac6b602cb430293fc931ce7977b233382 /scripts/gen-tunables.awk | |
parent | 37db2657c92da3bc50128feed53b3f58739a9b19 (diff) | |
download | glibc-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>
Diffstat (limited to 'scripts/gen-tunables.awk')
-rw-r--r-- | scripts/gen-tunables.awk | 2 |
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]); } |