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>
This commit is contained in:
H. Peter Anvin 2016-02-18 02:28:15 -08:00
parent a4973cf997
commit 2530a10b56
2 changed files with 2 additions and 2 deletions

2
nasm.c
View File

@ -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}

View File

@ -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)