diff options
author | Carl Worth <cworth@cworth.org> | 2010-04-23 09:19:52 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-23 09:19:52 -0700 |
commit | 65d278afb1174a4005a613cca8c306289b195876 (patch) | |
tree | ecc5dcf4489979e7efc5a2e8dc14742dda71de14 | |
parent | 143d43687410aefec7988e2d785a63c60c6062b5 (diff) |
Sprinkle some const-correctness around new_tags.
To eliminate a compiler warning.
-rw-r--r-- | notmuch-client.h | 2 | ||||
-rw-r--r-- | notmuch-config.c | 4 | ||||
-rw-r--r-- | notmuch-new.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index bd75211e..20be43b9 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -183,7 +183,7 @@ notmuch_config_set_user_other_email (notmuch_config_t *config, const char *other_email[], size_t length); -char ** +const char ** notmuch_config_get_new_tags (notmuch_config_t *config, size_t *length); void diff --git a/notmuch-config.c b/notmuch-config.c index ebddbf88..fa096287 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -68,7 +68,7 @@ struct _notmuch_config { char *user_primary_email; char **user_other_email; size_t user_other_email_length; - char **new_tags; + const char **new_tags; size_t new_tags_length; }; @@ -474,7 +474,7 @@ notmuch_config_set_user_other_email (notmuch_config_t *config, config->user_other_email = NULL; } -char ** +const char ** notmuch_config_get_new_tags (notmuch_config_t *config, size_t *length) { diff --git a/notmuch-new.c b/notmuch-new.c index 6432c664..8818728f 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -35,7 +35,7 @@ typedef struct _filename_list { typedef struct { int output_is_a_tty; int verbose; - char **new_tags; + const char **new_tags; size_t new_tags_length; int total_files; |