From 6138a75e8e438bb92ef541a6339d2a20c5164fd0 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Wed, 6 Apr 2016 17:57:20 -0500 Subject: 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 --- res/res_pjsip_exten_state.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'res/res_pjsip_exten_state.c') 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; -- cgit v1.2.3