From: Luigi Rizzo Date: Mon, 22 May 2006 02:22:39 +0000 (+0000) Subject: the msg argument of the various transmi_response*() functions is const. X-Git-Tag: 1.4.0-beta1~1273 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba195ee2d49328eb9f7c3ed5c0758a1a14f5e3ec;p=thirdparty%2Fasterisk.git the msg argument of the various transmi_response*() functions is const. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29331 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index cc8ec28016..c0b6392462 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1051,10 +1051,10 @@ static int sip_senddigit(struct ast_channel *ast, char digit); static int __sip_xmit(struct sip_pvt *p, char *data, int len); static int __sip_reliable_xmit(struct sip_pvt *p, int seqno, int resp, char *data, int len, int fatal, int sipmethod); static int __transmit_response(struct sip_pvt *p, const char *msg, struct sip_request *req, enum xmittype reliable); -static int transmit_response(struct sip_pvt *p, char *msg, struct sip_request *req); +static int transmit_response(struct sip_pvt *p, const char *msg, struct sip_request *req); static int transmit_response_reliable(struct sip_pvt *p, const char *msg, struct sip_request *req); -static int transmit_response_with_date(struct sip_pvt *p, char *msg, struct sip_request *req); -static int transmit_response_with_sdp(struct sip_pvt *p, char *msg, struct sip_request *req, enum xmittype reliable); +static int transmit_response_with_date(struct sip_pvt *p, const char *msg, struct sip_request *req); +static int transmit_response_with_sdp(struct sip_pvt *p, const char *msg, struct sip_request *req, enum xmittype reliable); static int transmit_response_with_unsupported(struct sip_pvt *p, const char *msg, struct sip_request *req, const char *unsupported); static int transmit_response_with_auth(struct sip_pvt *p, const char *msg, struct sip_request *req, const char *rand, enum xmittype reliable, const char *header, int stale); static int transmit_response_with_allow(struct sip_pvt *p, char *msg, struct sip_request *req, enum xmittype reliable); @@ -4660,7 +4660,7 @@ static int __transmit_response(struct sip_pvt *p, const char *msg, struct sip_re } /*! \brief Transmit response, no retransmits */ -static int transmit_response(struct sip_pvt *p, char *msg, struct sip_request *req) +static int transmit_response(struct sip_pvt *p, const char *msg, struct sip_request *req) { return __transmit_response(p, msg, req, XMIT_UNRELIABLE); } @@ -4696,7 +4696,7 @@ static void append_date(struct sip_request *req) } /*! \brief Append date and content length before transmitting response */ -static int transmit_response_with_date(struct sip_pvt *p, char *msg, struct sip_request *req) +static int transmit_response_with_date(struct sip_pvt *p, const char *msg, struct sip_request *req) { struct sip_request resp; respprep(&resp, p, msg, req); @@ -5048,7 +5048,7 @@ static void copy_request(struct sip_request *dst, const struct sip_request *src) } /*! \brief Used for 200 OK and 183 early media */ -static int transmit_response_with_sdp(struct sip_pvt *p, char *msg, struct sip_request *req, enum xmittype reliable) +static int transmit_response_with_sdp(struct sip_pvt *p, const char *msg, struct sip_request *req, enum xmittype reliable) { struct sip_request resp; int seqno;