diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-02-01 19:53:38 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-02-01 19:53:38 +0000 |
commit | 23bc964e1c45a7c614eb6d9dbfc4655e5bd9822e (patch) | |
tree | b778c55c24af5f9feb9d4cc1b478197519d01974 /channels/chan_vpb.cc | |
parent | 797d633139a52a87736c04b71e31b1cb66e21e08 (diff) |
Constify some more channel driver technology callback parameters.
Review: https://reviewboard.asterisk.org/r/1707/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@353685 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_vpb.cc')
-rw-r--r-- | channels/chan_vpb.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc index 312730d78..cd9d4344b 100644 --- a/channels/chan_vpb.cc +++ b/channels/chan_vpb.cc @@ -331,10 +331,10 @@ static struct vpb_pvt { static struct ast_channel *vpb_new(struct vpb_pvt *i, enum ast_channel_state state, const char *context, const char *linkedid); static void *do_chanreads(void *pvt); -static struct ast_channel *vpb_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, void *data, int *cause); +static struct ast_channel *vpb_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, const char *data, int *cause); static int vpb_digit_begin(struct ast_channel *ast, char digit); static int vpb_digit_end(struct ast_channel *ast, char digit, unsigned int duration); -static int vpb_call(struct ast_channel *ast, char *dest, int timeout); +static int vpb_call(struct ast_channel *ast, const char *dest, int timeout); static int vpb_hangup(struct ast_channel *ast); static int vpb_answer(struct ast_channel *ast); static struct ast_frame *vpb_read(struct ast_channel *ast); @@ -1787,11 +1787,11 @@ static int vpb_digit_end(struct ast_channel *ast, char digit, unsigned int durat } /* Places a call out of a VPB channel */ -static int vpb_call(struct ast_channel *ast, char *dest, int timeout) +static int vpb_call(struct ast_channel *ast, const char *dest, int timeout) { struct vpb_pvt *p = (struct vpb_pvt *)ast->tech_pvt; int res = 0, i; - char *s = strrchr(dest, '/'); + const char *s = strrchr(dest, '/'); char dialstring[254] = ""; /* @@ -2505,11 +2505,11 @@ static struct ast_channel *vpb_new(struct vpb_pvt *me, enum ast_channel_state st return tmp; } -static struct ast_channel *vpb_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, void *vdata, int *cause) +static struct ast_channel *vpb_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, const char *data, int *cause) { struct vpb_pvt *p; struct ast_channel *tmp = NULL; - char *sepstr, *data = (char *)vdata, *name; + char *sepstr, *name; const char *s; int group = -1; struct ast_format slin; |