command-line-arguments.[ch]: make arrays of keyword descriptors const

It seems like it should never be necessary to modify these arrays after
initialization.
This commit is contained in:
David Bremner 2011-12-12 23:54:24 -04:00
parent e00aeb4f85
commit f717d2ece1
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -38,7 +38,7 @@ typedef struct notmuch_opt_desc {
void *output_var;
const char *name;
int arg_id;
struct notmuch_keyword *keywords;
const struct notmuch_keyword *keywords;
} notmuch_opt_desc_t;