From 23bc964e1c45a7c614eb6d9dbfc4655e5bd9822e Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Wed, 1 Feb 2012 19:53:38 +0000 Subject: 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 --- channels/chan_jingle.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'channels/chan_jingle.c') diff --git a/channels/chan_jingle.c b/channels/chan_jingle.c index af0bd6ad8..0278238d4 100644 --- a/channels/chan_jingle.c +++ b/channels/chan_jingle.c @@ -171,11 +171,11 @@ static struct ast_format_cap *global_capability; AST_MUTEX_DEFINE_STATIC(jinglelock); /*!< Protect the interface list (of jingle_pvt's) */ /* Forward declarations */ -static struct ast_channel *jingle_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, void *data, int *cause); +static struct ast_channel *jingle_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, const char *data, int *cause); static int jingle_sendtext(struct ast_channel *ast, const char *text); static int jingle_digit_begin(struct ast_channel *ast, char digit); static int jingle_digit_end(struct ast_channel *ast, char digit, unsigned int duration); -static int jingle_call(struct ast_channel *ast, char *dest, int timeout); +static int jingle_call(struct ast_channel *ast, const char *dest, int timeout); static int jingle_hangup(struct ast_channel *ast); static int jingle_answer(struct ast_channel *ast); static int jingle_newcall(struct jingle *client, ikspak *pak); @@ -1498,7 +1498,7 @@ static int jingle_auto_congest(void *nothing) /*! \brief Initiate new call, part of PBX interface * dest is the dial string */ -static int jingle_call(struct ast_channel *ast, char *dest, int timeout) +static int jingle_call(struct ast_channel *ast, const char *dest, int timeout) { struct jingle_pvt *p = ast->tech_pvt; @@ -1542,7 +1542,7 @@ static int jingle_hangup(struct ast_channel *ast) } /*! \brief Part of PBX interface */ -static struct ast_channel *jingle_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, void *data, int *cause) +static struct ast_channel *jingle_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, const char *data, int *cause) { struct jingle_pvt *p = NULL; struct jingle *client = NULL; @@ -1556,7 +1556,7 @@ static struct ast_channel *jingle_request(const char *type, struct ast_format_ca if (sender && (sender[0] != '\0')) to = strsep(&s, "/"); if (!to) { - ast_log(LOG_ERROR, "Bad arguments in Jingle Dialstring: %s\n", (char*) data); + ast_log(LOG_ERROR, "Bad arguments in Jingle Dialstring: %s\n", data); return NULL; } } -- cgit v1.2.3