summaryrefslogtreecommitdiff
path: root/aserver
diff options
context:
space:
mode:
authorDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 01:21:32 +0100
committerDiego E. 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-11-21 13:04:41 +0100
commit8ed98db2590e284dd7ca884135c91566fee6069c (patch)
treeee11c8afaa87192810f0677e7e71970946483e98 /aserver
parent29a14294fc78480e69b9d211615ae6a50dc0c761 (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.c2
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 }
};