From f717d2ece1836c863f9cc02abd1ff2539307cd1d Mon Sep 17 00:00:00 2001 From: David Bremner Date: Mon, 12 Dec 2011 23:54:24 -0400 Subject: command-line-arguments.[ch]: make arrays of keyword descriptors const It seems like it should never be necessary to modify these arrays after initialization. --- command-line-arguments.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'command-line-arguments.c') diff --git a/command-line-arguments.c b/command-line-arguments.c index 3aa87aa5..e7114143 100644 --- a/command-line-arguments.c +++ b/command-line-arguments.c @@ -13,7 +13,7 @@ static notmuch_bool_t _process_keyword_arg (const notmuch_opt_desc_t *arg_desc, const char *arg_str) { - notmuch_keyword_t *keywords = arg_desc->keywords; + const notmuch_keyword_t *keywords = arg_desc->keywords; while (keywords->name) { if (strcmp (arg_str, keywords->name) == 0) { -- cgit v1.2.3