From: Luigi Rizzo Date: Mon, 22 May 2006 02:17:52 +0000 (+0000) Subject: mark const the source of copy_request X-Git-Tag: 1.4.0-beta1~1275 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a709886e30fb2ba15869c0246f7cab086257ed7;p=thirdparty%2Fasterisk.git mark const the source of copy_request git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29329 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 404b348699..a885531525 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1071,7 +1071,7 @@ static int transmit_register(struct sip_registry *r, int sipmethod, char *auth, static int retrans_pkt(void *data); static int send_response(struct sip_pvt *p, struct sip_request *req, enum xmittype reliable, int seqno); static int send_request(struct sip_pvt *p, struct sip_request *req, enum xmittype reliable, int seqno); -static void copy_request(struct sip_request *dst, struct sip_request *src); +static void copy_request(struct sip_request *dst, const struct sip_request *src); /*--- Dialog management */ static struct sip_pvt *sip_alloc(ast_string_field callid, struct sockaddr_in *sin, @@ -5033,7 +5033,7 @@ static int add_sdp(struct sip_request *resp, struct sip_pvt *p) } /*! \brief copy SIP request (mostly used to save request for responses) */ -static void copy_request(struct sip_request *dst, struct sip_request *src) +static void copy_request(struct sip_request *dst, const struct sip_request *src) { long offset; int x;