summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-02-18 02:28:15 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2016-02-18 02:28:15 -0800
commit2530a10b56a2eb9838d4f2ecf8b50f4cbb917919 (patch)
treed70fd9f7d7d814ac8fc1ee3153d1afb0418ba8d8
parenta4973cf997843e2bc2d1205a8bf0eb9092fcc91a (diff)
downloadnasm-2530a10b56a2eb9838d4f2ecf8b50f4cbb917919.tar.gz
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 <hpa@linux.intel.com>
-rw-r--r--nasm.c2
-rw-r--r--output/outdbg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/nasm.c b/nasm.c
index 0ba96f68..c6398120 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 fdd80329..60a3ad28 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)