mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -259,7 +259,7 @@ int iax_provision_version(unsigned int *version, const char *template, int force
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int iax_template_parse(struct iax_template *cur, struct ast_config *cfg, char *s, char *def)
|
||||
static int iax_template_parse(struct iax_template *cur, struct ast_config *cfg, const char *s, const char *def)
|
||||
{
|
||||
struct ast_variable *v;
|
||||
int foundportno = 0;
|
||||
@@ -269,7 +269,7 @@ static int iax_template_parse(struct iax_template *cur, struct ast_config *cfg,
|
||||
struct hostent *hp;
|
||||
struct ast_hostent h;
|
||||
struct iax_template *src, tmp;
|
||||
char *t;
|
||||
const char *t;
|
||||
if (def) {
|
||||
t = ast_variable_retrieve(cfg, s ,"template");
|
||||
src = NULL;
|
||||
|
Reference in New Issue
Block a user