Sprinkle some const-correctness around new_tags.

To eliminate a compiler warning.
This commit is contained in:
Carl Worth 2010-04-23 09:19:52 -07:00
parent 143d436874
commit 65d278afb1
3 changed files with 4 additions and 4 deletions

View 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

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

View 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;