diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-04-06 17:57:20 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-04-07 17:20:17 -0500 |
commit | 6138a75e8e438bb92ef541a6339d2a20c5164fd0 (patch) | |
tree | 94d939f8662e4244518a3f24fb50a4186b783413 /res | |
parent | 724c16c5434e3905d7ae28e9661772f8794d7c53 (diff) |
pbx.h: Make ast_state_cb_type take more const.
This eliminates some casts that I made a note saying v10 and above
would no longer need them.
Better late than never :)
Change-Id: I346cdb3032b6478ceb40eb6fe732978b54035572
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip_exten_state.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/res/res_pjsip_exten_state.c b/res/res_pjsip_exten_state.c index 27d16bd67..a4ad1cd78 100644 --- a/res/res_pjsip_exten_state.c +++ b/res/res_pjsip_exten_state.c @@ -191,8 +191,9 @@ static void notify_task_data_destructor(void *obj) ast_free(task_data->exten_state_data.user_agent); } -static struct notify_task_data *alloc_notify_task_data(char *exten, struct exten_state_subscription *exten_state_sub, - struct ast_state_cb_info *info) +static struct notify_task_data *alloc_notify_task_data(const char *exten, + struct exten_state_subscription *exten_state_sub, + struct ast_state_cb_info *info) { struct notify_task_data *task_data = ao2_alloc(sizeof(*task_data), notify_task_data_destructor); @@ -270,8 +271,8 @@ static int notify_task(void *obj) * * Upon state change, send the appropriate notification to the subscriber. */ -static int state_changed(char *context, char *exten, - struct ast_state_cb_info *info, void *data) +static int state_changed(const char *context, const char *exten, + struct ast_state_cb_info *info, void *data) { struct notify_task_data *task_data; struct exten_state_subscription *exten_state_sub = data; |