diff options
author | Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-11-21 13:10:02 +0100 |
---|---|---|
committer | Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-11-21 13:10:02 +0100 |
commit | 6232f1c96cde1fee247e95cd97235c48cc7b168d (patch) | |
tree | e21322f006201192768c2a01b4f7d7479e6c9d3a /iecset | |
parent | ca1ea1e90484bf8cd2a7ef78f29e4f02a457d584 (diff) | |
download | alsa-utils-6232f1c96cde1fee247e95cd97235c48cc7b168d.tar.gz |
Make some static tables and strings constants.
By doing this we move them from the .data section to .rodata setion,
or from .data.rel to .data.rel.ro.
The .rodata section is mapped directly from the on-disk file, which is
always a save, while .data.rel.ro is mapped directly when using
prelink, which is a save in a lot of cases.
Signed-off-by: Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>
Diffstat (limited to 'iecset')
-rw-r--r-- | iecset/iecbits.c | 2 | ||||
-rw-r--r-- | iecset/iecset.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/iecset/iecbits.c b/iecset/iecbits.c index 84d439b..edea932 100644 --- a/iecset/iecbits.c +++ b/iecset/iecbits.c @@ -25,7 +25,7 @@ struct category_str { const char *name; }; -static struct category_str con_category[] = { +static const struct category_str con_category[] = { { IEC958_AES1_CON_GENERAL, "general" }, { IEC958_AES1_CON_IEC908_CD, "CD" }, diff --git a/iecset/iecset.c b/iecset/iecset.c index 8e44078..92a93e8 100644 --- a/iecset/iecset.c +++ b/iecset/iecset.c @@ -52,7 +52,7 @@ struct cmdtbl { const char *desc; }; -static struct cmdtbl cmds[] = { +static const struct cmdtbl cmds[] = { { "pro", IDX_PRO, CMD_BOOL, "professional (common)\n\toff = consumer mode, on = professional mode" }, { "aud", IDX_NOAUDIO, CMD_BOOL_INV, |