[asterisk-commits] trunk r29267 - /trunk/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun May 21 17:32:37 MST 2006
Author: rizzo
Date: Sun May 21 19:32:36 2006
New Revision: 29267
URL: http://svn.digium.com/view/asterisk?rev=29267&view=rev
Log:
src is const in parse_copy()
Modified:
trunk/channels/chan_sip.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=29267&r1=29266&r2=29267&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun May 21 19:32:36 2006
@@ -1178,7 +1178,7 @@
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 @@
/*! \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));
More information about the asterisk-commits
mailing list