From: Luigi Rizzo Date: Mon, 22 May 2006 00:46:04 +0000 (+0000) Subject: annotate const parameters of copy_header() X-Git-Tag: 1.4.0-beta1~1280 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=917182e2868a6175dc9c3c2b43fae573aa297ac5;p=thirdparty%2Fasterisk.git annotate const parameters of copy_header() git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@29268 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 84e7560cc8..7dce504a3f 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1207,7 +1207,7 @@ static int add_text(struct sip_request *req, const char *text); static int add_digit(struct sip_request *req, char digit); static int add_vidupdate(struct sip_request *req); static void add_route(struct sip_request *req, struct sip_route *route); -static int copy_header(struct sip_request *req, struct sip_request *orig, char *field); +static int copy_header(struct sip_request *req, const struct sip_request *orig, const char *field); static int copy_all_header(struct sip_request *req, struct sip_request *orig, char *field); static int copy_via_headers(struct sip_pvt *p, struct sip_request *req, struct sip_request *orig, char *field); static void set_destination(struct sip_pvt *p, char *uri); @@ -4274,7 +4274,7 @@ static int add_line(struct sip_request *req, const char *line) } /*! \brief Copy one header field from one request to another */ -static int copy_header(struct sip_request *req, struct sip_request *orig, char *field) +static int copy_header(struct sip_request *req, const struct sip_request *orig, const char *field) { const char *tmp = get_header(orig, field);