mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +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:
@@ -596,7 +596,7 @@ static int statechange_queue(const char *dev, int state, void *ign)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static struct member *create_queue_member(char *interface, char *membername, int penalty, int paused)
|
||||
static struct member *create_queue_member(char *interface, const char *membername, int penalty, int paused)
|
||||
{
|
||||
struct member *cur;
|
||||
|
||||
@@ -912,7 +912,7 @@ static void queue_set_param(struct call_queue *q, const char *param, const char
|
||||
}
|
||||
}
|
||||
|
||||
static void rt_handle_member_record(struct call_queue *q, char *interface, char *membername, const char *penalty_str)
|
||||
static void rt_handle_member_record(struct call_queue *q, char *interface, const char *membername, const char *penalty_str)
|
||||
{
|
||||
struct member *m, *prev_m;
|
||||
int penalty = 0;
|
||||
@@ -3691,7 +3691,7 @@ static int reload_queues(void)
|
||||
struct ast_variable *var;
|
||||
struct member *prev, *cur, *newm;
|
||||
int new;
|
||||
char *general_val = NULL;
|
||||
const char *general_val = NULL;
|
||||
char parse[80];
|
||||
char *interface;
|
||||
char *membername;
|
||||
|
Reference in New Issue
Block a user