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_nbs.c | |
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_nbs.c')
-rw-r--r-- | channels/chan_nbs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/channels/chan_nbs.c b/channels/chan_nbs.c index 95b41d4de..50a6397d3 100644 --- a/channels/chan_nbs.c +++ b/channels/chan_nbs.c @@ -67,8 +67,8 @@ struct nbs_pvt { struct ast_module_user *u; /*! for holding a reference to this module */ }; -static struct ast_channel *nbs_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, void *data, int *cause); -static int nbs_call(struct ast_channel *ast, char *dest, int timeout); +static struct ast_channel *nbs_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, const char *data, int *cause); +static int nbs_call(struct ast_channel *ast, const char *dest, int timeout); static int nbs_hangup(struct ast_channel *ast); static struct ast_frame *nbs_xread(struct ast_channel *ast); static int nbs_xwrite(struct ast_channel *ast, struct ast_frame *frame); @@ -83,7 +83,7 @@ static struct ast_channel_tech nbs_tech = { .write = nbs_xwrite, }; -static int nbs_call(struct ast_channel *ast, char *dest, int timeout) +static int nbs_call(struct ast_channel *ast, const char *dest, int timeout) { struct nbs_pvt *p; @@ -117,7 +117,7 @@ static void nbs_destroy(struct nbs_pvt *p) ast_free(p); } -static struct nbs_pvt *nbs_alloc(void *data) +static struct nbs_pvt *nbs_alloc(const char *data) { struct nbs_pvt *p; int flags = 0; @@ -251,7 +251,7 @@ static struct ast_channel *nbs_new(struct nbs_pvt *i, int state, const char *lin } -static struct ast_channel *nbs_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, void *data, int *cause) +static struct ast_channel *nbs_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, const char *data, int *cause) { struct nbs_pvt *p; struct ast_channel *tmp = NULL; |