diff --git a/src/config/domain.c b/src/config/domain.c index 6dabb5b07..62a942bcd 100644 --- a/src/config/domain.c +++ b/src/config/domain.c @@ -25,7 +25,7 @@ INIT_LIST_OF(struct domain_tree, domain_trees); * that best matches the given domain name. */ static struct option * get_domain_option(char *domain_name, int domain_len, - char *name) + const char *name) { struct option *opt, *longest_match_opt = NULL; struct domain_tree *longest_match = NULL; @@ -46,7 +46,7 @@ get_domain_option(char *domain_name, int domain_len, } struct option * -get_domain_option_from_session(char *name, struct session *ses) +get_domain_option_from_session(const char *name, struct session *ses) { struct uri *uri; diff --git a/src/config/domain.h b/src/config/domain.h index 33f7d86e1..8c550c1f5 100644 --- a/src/config/domain.h +++ b/src/config/domain.h @@ -25,7 +25,7 @@ extern LIST_OF(struct domain_tree) domain_trees; struct option *get_domain_tree(char *); -struct option *get_domain_option_from_session(char *, +struct option *get_domain_option_from_session(const char *, struct session *); void done_domain_trees(void);