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:
@@ -2171,7 +2171,7 @@ static int pbx_load_config(const char *config_file)
|
||||
int lastpri = -2;
|
||||
struct ast_context *con;
|
||||
struct ast_variable *v;
|
||||
char *cxt;
|
||||
const char *cxt;
|
||||
|
||||
cfg = ast_config_load(config_file);
|
||||
if (!cfg)
|
||||
@@ -2340,8 +2340,8 @@ static void pbx_load_users(void)
|
||||
{
|
||||
struct ast_config *cfg;
|
||||
char *cat, *chan;
|
||||
char *zapchan;
|
||||
char *hasexten;
|
||||
const char *zapchan;
|
||||
const char *hasexten;
|
||||
char tmp[256];
|
||||
char iface[256];
|
||||
char zapcopy[256];
|
||||
|
Reference in New Issue
Block a user