diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-08-01 09:17:54 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-08-01 09:17:54 +0200 |
commit | b2250bfa948be835b8bf7e19f1d3a822a4d54073 (patch) | |
tree | dacec27896f1eea00998372b53fc534ef45bb3a8 | |
parent | bdd43bccaf29230f45d1458f30ad470764df1078 (diff) | |
download | binutils-b2250bfa948be835b8bf7e19f1d3a822a4d54073.zip binutils-b2250bfa948be835b8bf7e19f1d3a822a4d54073.tar.gz binutils-b2250bfa948be835b8bf7e19f1d3a822a4d54073.tar.bz2 |
opcodes/ppc: make ppc_opts[] static const
There's no reason to allow the array to be modifiable, nor for it to be
globally visible.
-rw-r--r-- | opcodes/ppc-dis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 3e21034..6e4a3b8 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -72,7 +72,7 @@ struct ppc_mopt { ppc_cpu_t sticky; }; -struct ppc_mopt ppc_opts[] = { +static const struct ppc_mopt ppc_opts[] = { { "403", PPC_OPCODE_PPC | PPC_OPCODE_403, 0 }, { "405", PPC_OPCODE_PPC | PPC_OPCODE_403 | PPC_OPCODE_405, |