changeset 475:6e9e1931abb0

Added const to CLI_options variable.
author corvid <corvid@lavabit.com>
date Sun, 21 Dec 2008 08:21:30 -0300
parents cfc31852b750
children 97e5244798b7
files src/dillo.cc
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/dillo.cc	Sun Dec 21 08:16:09 2008 -0300
+++ b/src/dillo.cc	Sun Dec 21 08:21:30 2008 -0300
@@ -69,7 +69,7 @@
    const char *help;
 } CLI_options;
 
-static CLI_options Options[] = {
+const CLI_options Options[] = {
    {"-f", "--fullwindow", 0, DILLO_CLI_FULLWINDOW,
     "  -f, --fullwindow       Start in full window mode: hide address bar,\n"
     "                         navigation buttons, menu, and status bar."},
@@ -92,7 +92,7 @@
 /*
  * Print help text generated from the options structure
  */
-static void Dillo_print_help(const char *cmdname, CLI_options *options)
+static void Dillo_print_help(const char *cmdname, const CLI_options *options)
 {
    printf("Usage: %s [OPTION]... [--] [URL|FILE]...\n"
           "Options:\n", cmdname);
@@ -108,7 +108,7 @@
 /*
  * Return the maximum number of option arguments
  */
-static int Dillo_get_max_opt(CLI_options *options)
+static int Dillo_get_max_opt(const CLI_options *options)
 {
    int i, max;
 
@@ -121,7 +121,7 @@
 /*
  * Get next command line option.
  */
-static OptID Dillo_get_opt(CLI_options *options, int argc, char **argv,
+static OptID Dillo_get_opt(const CLI_options *options, int argc, char **argv,
                            char **opt_argv, int *idx)
 {
    typedef enum { O_SEARCH, O_FOUND, O_NOTFOUND, O_DONE } State;