summaryrefslogtreecommitdiff
path: root/output/outaout.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/outaout.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/outaout.c')
-rw-r--r--output/outaout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/output/outaout.c b/output/outaout.c
index 1ff22a54..5a125408 100644
--- a/output/outaout.c
+++ b/output/outaout.c
@@ -188,7 +188,7 @@ static void aout_init(void)
#ifdef OF_AOUTB
-extern struct ofmt of_aoutb;
+extern const struct ofmt of_aoutb;
static void aoutb_init(void)
{
@@ -908,7 +908,7 @@ extern macros_t aout_stdmac[];
#ifdef OF_AOUT
-struct ofmt of_aout = {
+const struct ofmt of_aout = {
"Linux a.out object files",
"aout",
0,
@@ -932,7 +932,7 @@ struct ofmt of_aout = {
#ifdef OF_AOUTB
-struct ofmt of_aoutb = {
+const struct ofmt of_aoutb = {
"NetBSD/FreeBSD a.out object files",
"aoutb",
0,