sim: hw: mark hw_descriptors const

This commit is contained in:
Mike Frysinger
2021-11-27 12:14:28 -05:00
parent 6916d9e65c
commit d9a84d15f2
2 changed files with 2 additions and 2 deletions

View File

@@ -428,7 +428,7 @@ stamp-hw: Makefile.in $(srccom)/Make-common.in $(config.status) Makefile
sim_hw="$(SIM_HW_DEVICES)" ; \
echo "/* generated by Makefile */" ; \
printf "extern const struct hw_descriptor dv_%s_descriptor[];\n" $$sim_hw ; \
echo "const struct hw_descriptor *hw_descriptors[] = {" ; \
echo "const struct hw_descriptor * const hw_descriptors[] = {" ; \
printf " dv_%s_descriptor,\n" $$sim_hw ; \
echo " NULL," ; \
echo "};" \

View File

@@ -385,7 +385,7 @@ hw_create (struct sim_state *sd,
/* locate a descriptor */
{
const struct hw_descriptor **table;
const struct hw_descriptor * const *table;
for (table = hw_descriptors;
*table != NULL;
table++)