Skip to content

Commit

Permalink
director: const mail_host in mail_host_get_tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and GitLab committed Nov 8, 2016
1 parent 4217dcd commit 4af552f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/director/mail-host.c
Expand Up @@ -348,7 +348,7 @@ int mail_hosts_parse_and_add(struct mail_host_list *list,
return ret;
}

const char *mail_host_get_tag(struct mail_host *host)
const char *mail_host_get_tag(const struct mail_host *host)
{
return host->tag->name;
}
Expand Down
2 changes: 1 addition & 1 deletion src/director/mail-host.h
Expand Up @@ -38,7 +38,7 @@ mail_host_get_by_hash(struct mail_host_list *list, unsigned int hash,

int mail_hosts_parse_and_add(struct mail_host_list *list,
const char *hosts_string);
const char *mail_host_get_tag(struct mail_host *host);
const char *mail_host_get_tag(const struct mail_host *host);
void mail_host_set_tag(struct mail_host *host, const char *tag_name);
void mail_host_set_down(struct mail_host *host, bool down, time_t timestamp);
void mail_host_set_vhost_count(struct mail_host *host,
Expand Down

0 comments on commit 4af552f

Please sign in to comment.