Skip to content

Commit

Permalink
Make constant data const in main.c
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jan 7, 2015
1 parent 38c999e commit 9c84319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Expand Up @@ -193,7 +193,7 @@ enum {
#define OPTION(name, arg, abbrev) {name, arg, NULL, abbrev}
#endif

static struct option long_options[] = {
static const struct option long_options[] = {
#ifndef _WIN32
OPTION("background", 0, 'b'),
OPTION("pid-file", 1, OPT_PIDFILE),
Expand Down Expand Up @@ -835,7 +835,7 @@ static int next_option(int argc, char **argv, char **config_arg)

ssize_t llen;
int opt, optlen = 0;
struct option *this;
const struct option *this;
char *line;
int ate_equals = 0;

Expand Down

0 comments on commit 9c84319

Please sign in to comment.