summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-05-22 02:22:39 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-05-22 02:22:39 +0000
commitba195ee2d49328eb9f7c3ed5c0758a1a14f5e3ec (patch)
tree0a1d516dfbc8d74d05ac2ca9d8aeb872786e4c1a
parent75c6b453a3ebf48573eea2d67b9543b43c1c4ca0 (diff)
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
-rw-r--r--channels/chan_sip.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index cc8ec2801..c0b639246 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;