summaryrefslogtreecommitdiff
path: root/output/outdbg.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-02-18 02:16:36 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2016-02-18 02:16:36 -0800
commit7e3b12d6daaa2f9a51115e735c8ccfcb03e5fdbc (patch)
tree9649650d61139c0f29d8c06eb3cfe79d8fb812f2 /output/outdbg.c
parentf0ea3d7c2b9f3767788fa3945fcdcc8606c0ef69 (diff)
downloadnasm-7e3b12d6daaa2f9a51115e735c8ccfcb03e5fdbc.tar.gz
More constification, mostly of struct dfmt
Make struct dfmt and the struct dfmt arrays const across the board, and make them static whereever possible. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'output/outdbg.c')
-rw-r--r--output/outdbg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/output/outdbg.c b/output/outdbg.c
index b954f146..fdd80329 100644
--- a/output/outdbg.c
+++ b/output/outdbg.c
@@ -242,7 +242,7 @@ static void dbgdbg_typevalue(int32_t type)
fprintf(ofile, "new type: %s(%"PRIX32")\n",
types[TYM_TYPE(type) >> 3], TYM_ELEMENTS(type));
}
-static struct dfmt debug_debug_form = {
+static const struct dfmt debug_debug_form = {
"Trace of all info passed to debug stage",
"debug",
dbgdbg_init,
@@ -254,7 +254,7 @@ static struct dfmt debug_debug_form = {
dbgdbg_cleanup,
};
-static struct dfmt *debug_debug_arr[3] = {
+static const struct dfmt * const debug_debug_arr[3] = {
&debug_debug_form,
&null_debug_form,
NULL