Commit-ID: 2530a10b56a2eb9838d4f2ecf8b50f4cbb917919
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=2530a10b56a2eb9838d4f2ecf8b50f4cbb917919
Author: H. Peter Anvin <hp...@li...>
AuthorDate: Thu, 18 Feb 2016 02:28:15 -0800
Committer: H. Peter Anvin <hp...@li...>
CommitDate: Thu, 18 Feb 2016 02:28:15 -0800
Make a few more data items static and const
A few more data items that should be static and const.
Signed-off-by: H. Peter Anvin <hp...@li...>
---
nasm.c | 2 +-
output/outdbg.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nasm.c b/nasm.c
index 0ba96f6..c639812 100644
--- a/nasm.c
+++ b/nasm.c
@@ -617,7 +617,7 @@ enum text_options {
OPT_PREFIX,
OPT_POSTFIX,
};
-struct textargs textopts[] = {
+static const struct textargs textopts[] = {
{"prefix", OPT_PREFIX},
{"postfix", OPT_POSTFIX},
{NULL, 0}
diff --git a/output/outdbg.c b/output/outdbg.c
index fdd8032..60a3ad2 100644
--- a/output/outdbg.c
+++ b/output/outdbg.c
@@ -203,7 +203,7 @@ static int dbg_set_info(enum geninfo type, char **val)
return 0;
}
-char *types[] = {
+static const char * const types[] = {
"unknown", "label", "byte", "word", "dword", "float", "qword", "tbyte"
};
static void dbgdbg_init(void)
|