diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2016-02-18 02:28:15 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2016-02-18 02:28:15 -0800 |
commit | 2530a10b56a2eb9838d4f2ecf8b50f4cbb917919 (patch) | |
tree | d70fd9f7d7d814ac8fc1ee3153d1afb0418ba8d8 | |
parent | a4973cf997843e2bc2d1205a8bf0eb9092fcc91a (diff) | |
download | nasm-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.c | 2 | ||||
-rw-r--r-- | output/outdbg.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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) |