summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 564ec05)
raw | patch | inline | side by side (parent: 564ec05)
author | Max Kellermann <max@duempel.org> | |
Mon, 22 Sep 2008 08:39:01 +0000 (10:39 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 22 Sep 2008 08:39:01 +0000 (10:39 +0200) |
Make the options_table constant, since it is never modified.
src/options.c | patch | blob | history |
diff --git a/src/options.c b/src/options.c
index e92cebbd0b2167f920e92873fd371ed851d0bc6b..2c818279580f1c247df9e47e9e971f58c34deedd 100644 (file)
--- a/src/options.c
+++ b/src/options.c
options_t options;
-static arg_opt_t option_table[] = {
+static const arg_opt_t option_table[] = {
{ '?', "help", NULL, "Show this help message" },
{ 'V', "version", NULL, "Display version information" },
{ 'c', "colors", NULL, "Enable colors" },
{ 0, NULL, NULL, NULL },
};
-static arg_opt_t *
+static const arg_opt_t *
lookup_option(int s, char *l)
{
int i;
options_parse(int argc, const char *argv[])
{
int i;
- arg_opt_t *opt = NULL;
+ const arg_opt_t *opt = NULL;
option_callback_fn_t option_cb = handle_option;
i=1;