diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-20 20:40:39 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-20 20:40:39 +0000 |
commit | e8ef9fd3bafa2149743dbc054fee547b432be5a7 (patch) | |
tree | cfe98d62cefd297076949dd1e36255cd7e2c3b9a /include/asterisk/config.h | |
parent | 9a47f6702095e34ea993fdbebe7e7a7736b8d5f1 (diff) |
Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43364 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/config.h')
-rw-r--r-- | include/asterisk/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h index 720d6b971..a16de0b53 100644 --- a/include/asterisk/config.h +++ b/include/asterisk/config.h @@ -100,7 +100,7 @@ struct ast_variable *ast_variable_browse(const struct ast_config *config, const * * Returns the variable value on success, or NULL if unable to find it. */ -char *ast_variable_retrieve(const struct ast_config *config, const char *category, const char *variable); +const char *ast_variable_retrieve(const struct ast_config *config, const char *category, const char *variable); /*! \brief Retrieve a category if it exists * \param config which config to use @@ -172,7 +172,7 @@ int read_config_maps(void); struct ast_config *ast_config_new(void); struct ast_category *ast_config_get_current_category(const struct ast_config *cfg); void ast_config_set_current_category(struct ast_config *cfg, const struct ast_category *cat); -char *ast_config_option(struct ast_config *cfg, const char *cat, const char *var); +const char *ast_config_option(struct ast_config *cfg, const char *cat, const char *var); struct ast_category *ast_category_new(const char *name); void ast_category_append(struct ast_config *config, struct ast_category *cat); |