summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2016-04-06 17:57:20 -0500
committerRichard Mudgett <rmudgett@digium.com>2016-04-07 17:20:17 -0500
commit6138a75e8e438bb92ef541a6339d2a20c5164fd0 (patch)
tree94d939f8662e4244518a3f24fb50a4186b783413 /main/pbx.c
parent724c16c5434e3905d7ae28e9661772f8794d7c53 (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 'main/pbx.c')
-rw-r--r--main/pbx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 7efbdee7a..a8128ab41 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -3231,8 +3231,7 @@ static int execute_state_callback(ast_state_cb_type cb,
info.exten_state = AST_EXTENSION_REMOVED;
}
- /* NOTE: The casts will not be needed for v10 and later */
- res = cb((char *) context, (char *) exten, &info, data);
+ res = cb(context, exten, &info, data);
return res;
}