summaryrefslogtreecommitdiff
path: root/output/outdbg.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2016-02-17 20:59:22 -0800
committerH. Peter Anvin <hpa@linux.intel.com>2016-02-17 20:59:22 -0800
commit338656c1de8cace12c55c87ce40a7d909f18c2e9 (patch)
tree4f3619d97719b826ec83f4f37fdec5beade972cc /output/outdbg.c
parenta7bc15dd0aa963ab56a98ee04bc08ce6d9e3baea (diff)
downloadnasm-338656c1de8cace12c55c87ce40a7d909f18c2e9.tar.gz
output: make all instances of struct ofmt readonly
With current_dfmt gone, we can make all instances of struct ofmt const (read-only). 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 83860abd..b954f146 100644
--- a/output/outdbg.c
+++ b/output/outdbg.c
@@ -56,7 +56,7 @@ struct Section {
char *name;
} *dbgsect;
-struct ofmt of_dbg;
+const struct ofmt of_dbg;
static void dbg_init(void)
{
dbgsect = NULL;
@@ -260,7 +260,7 @@ static struct dfmt *debug_debug_arr[3] = {
NULL
};
-struct ofmt of_dbg = {
+const struct ofmt of_dbg = {
"Trace of all info passed to output stage",
"dbg",
OFMT_TEXT,