diff options
author | Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-11-21 01:21:32 +0100 |
---|---|---|
committer | Diego E. 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-11-21 13:04:41 +0100 |
commit | 8ed98db2590e284dd7ca884135c91566fee6069c (patch) | |
tree | ee11c8afaa87192810f0677e7e71970946483e98 /aserver | |
parent | 29a14294fc78480e69b9d211615ae6a50dc0c761 (diff) |
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 'aserver')
-rw-r--r-- | aserver/aserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aserver/aserver.c b/aserver/aserver.c index 481b0ae7..73ea4e95 100644 --- a/aserver/aserver.c +++ b/aserver/aserver.c @@ -1005,7 +1005,7 @@ static void usage(void) int main(int argc, char **argv) { - static struct option long_options[] = { + static const struct option long_options[] = { {"help", 0, 0, 'h'}, { 0 , 0 , 0, 0 } }; |