[svn-commits] trunk r29268 - /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun May 21 17:46:04 MST 2006


Author: rizzo
Date: Sun May 21 19:46:04 2006
New Revision: 29268

URL: http://svn.digium.com/view/asterisk?rev=29268&view=rev
Log:
annotate const parameters of copy_header()


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=29268&r1=29267&r2=29268&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun May 21 19:46:04 2006
@@ -1207,7 +1207,7 @@
 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 @@
 }
 
 /*! \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);
 



More information about the svn-commits mailing list