]> git.notmuchmail.org Git - notmuch/commitdiff
Sprinkle some const-correctness around new_tags.
authorCarl Worth <cworth@cworth.org>
Fri, 23 Apr 2010 16:19:52 +0000 (09:19 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Apr 2010 16:19:52 +0000 (09:19 -0700)
To eliminate a compiler warning.

notmuch-client.h
notmuch-config.c
notmuch-new.c

index bd75211ee136b301c0ba9a6b5101c5163dc81720..20be43b9660ccb60779167e32d87325dac255f40 100644 (file)
@@ -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
index ebddbf88222a57df2efc021c7299b43e19d5bc28..fa09628729a1a8a81823a0db20ddd8541752991d 100644 (file)
@@ -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)
 {
index 6432c664ead174929c3066b3e9d3f94edac563fe..8818728f69c37eba3445ed240bbd49e3d6c172d6 100644 (file)
@@ -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;