summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2006-09-20 20:40:39 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2006-09-20 20:40:39 +0000
commit70af28270d259626836514bd89841ba8a6fe7bb6 (patch)
treecfe98d62cefd297076949dd1e36255cd7e2c3b9a /include/asterisk
parentcc99b224696df73146059668866e2543e2cddb64 (diff)
Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43364 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/config.h4
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);