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 /amidi | |
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 'amidi')
-rw-r--r-- | amidi/amidi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/amidi/amidi.c b/amidi/amidi.c index 82eeff4..2e970ae 100644 --- a/amidi/amidi.c +++ b/amidi/amidi.c @@ -465,8 +465,8 @@ static void add_send_hex_data(const char *str) int main(int argc, char *argv[]) { - static char short_options[] = "hVlLp:s:r:S::dt:a"; - static struct option long_options[] = { + static const char short_options[] = "hVlLp:s:r:S::dt:a"; + static const struct option long_options[] = { {"help", 0, NULL, 'h'}, {"version", 0, NULL, 'V'}, {"list-devices", 0, NULL, 'l'}, |