diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-22 00:32:36 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-22 00:32:36 +0000 |
commit | 99d77e94c0b902e7e1ecca72171c2fbd1ebcee54 (patch) | |
tree | 3a1c5c9c65ac4d233e371e7fa4c30a40140eeeba | |
parent | 4b2c4b1533303a768a0eeaed4bf91cc845e86842 (diff) |
src is const in parse_copy()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@29267 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 648924a23..84e7560cc 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -1178,7 +1178,7 @@ static void parse_request(struct sip_request *req); static const char *get_header(const struct sip_request *req, const char *name); static char *referstatus2str(enum referstatus rstatus); static int method_match(enum sipmethod id, const char *name); -static void parse_copy(struct sip_request *dst, struct sip_request *src); +static void parse_copy(struct sip_request *dst, const struct sip_request *src); static char *get_in_brackets(char *tmp); static const char *find_alias(const char *name, const char *_default); static const char *__get_header(const struct sip_request *req, const char *name, int *start); @@ -1790,7 +1790,7 @@ static int __sip_semi_ack(struct sip_pvt *p, int seqno, int resp, int sipmethod) /*! \brief Copy SIP request, parse it */ -static void parse_copy(struct sip_request *dst, struct sip_request *src) +static void parse_copy(struct sip_request *dst, const struct sip_request *src) { memset(dst, 0, sizeof(*dst)); memcpy(dst->data, src->data, sizeof(dst->data)); |