mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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:
parent
e00aeb4f85
commit
f717d2ece1
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue