aboutsummaryrefslogtreecommitdiff
path: root/opcodes/z80-dis.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-27 01:58:18 -0400
committerMike Frysinger <vapier@gentoo.org>2021-07-01 17:56:24 -0400
commitac8ef6961e18664224b55c1eadc611f0e9f1e5b5 (patch)
tree577160807156b8c22b54f513625d45f76c553f1b /opcodes/z80-dis.c
parent52b8387412e32380013a46dd00959e65ecef71fb (diff)
downloadfsf-binutils-gdb-ac8ef6961e18664224b55c1eadc611f0e9f1e5b5.zip
fsf-binutils-gdb-ac8ef6961e18664224b55c1eadc611f0e9f1e5b5.tar.gz
fsf-binutils-gdb-ac8ef6961e18664224b55c1eadc611f0e9f1e5b5.tar.bz2
opcodes: constify & localize z80 opcodes
These aren't used outside of this module, and are never modified. Mark it static to avoid bad exported variable name issues.
Diffstat (limited to 'opcodes/z80-dis.c')
-rw-r--r--opcodes/z80-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/z80-dis.c b/opcodes/z80-dis.c
index 9b9f941..0e7a312 100644
--- a/opcodes/z80-dis.c
+++ b/opcodes/z80-dis.c
@@ -414,7 +414,7 @@ dump (struct buffer *buf, disassemble_info * info, const char *txt)
}
/* Table to disassemble machine codes with prefix 0xED. */
-struct tab_elt opc_ed[] =
+static const struct tab_elt opc_ed[] =
{
{ 0x30, 0xFF, prt, "mul d,e", INSS_Z80N },
{ 0x31, 0xFF, prt, "add hl,a", INSS_Z80N },
@@ -525,7 +525,7 @@ static int
pref_ed (struct buffer *buf, disassemble_info *info,
const char *txt ATTRIBUTE_UNUSED)
{
- struct tab_elt *p;
+ const struct tab_elt *p;
if (fetch_data (buf, info, 1))
{