From 65d278afb1174a4005a613cca8c306289b195876 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 23 Apr 2010 09:19:52 -0700 Subject: [PATCH] Sprinkle some const-correctness around new_tags. To eliminate a compiler warning. --- notmuch-client.h | 2 +- notmuch-config.c | 4 ++-- 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; -- 2.43.0