[svn-commits] trunk - r8443 in /trunk: channels/ include/asterisk/
res/
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sun Jan 22 11:42:08 MST 2006
Author: russell
Date: Sun Jan 22 12:42:06 2006
New Revision: 8443
URL: http://svn.digium.com/view/asterisk?rev=8443&view=rev
Log:
eliminate some compiler warnings
Modified:
trunk/channels/chan_sip.c
trunk/include/asterisk/astosp.h
trunk/res/res_osp.c
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=8443&r1=8442&r2=8443&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Sun Jan 22 12:42:06 2006
@@ -469,7 +469,7 @@
/*! \brief Parameters to the transmit_invite function */
struct sip_invite_param {
const char *distinctive_ring; /*!< Distinctive ring header */
- char *osptoken; /*!< OSP token for this call */
+ const char *osptoken; /*!< OSP token for this call */
int addsipheaders; /*!< Add extra SIP headers */
const char *uri_options; /*!< URI options to add to the URI */
const char *vxml_url; /*!< VXML url for Cisco phones */
@@ -1996,7 +1996,7 @@
int res;
struct sip_pvt *p;
#ifdef OSP_SUPPORT
- char *osphandle = NULL;
+ const char *osphandle = NULL;
#endif
struct varshead *headp;
struct ast_var_t *current;
Modified: trunk/include/asterisk/astosp.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/astosp.h?rev=8443&r1=8442&r2=8443&view=diff
==============================================================================
--- trunk/include/asterisk/astosp.h (original)
+++ trunk/include/asterisk/astosp.h Sun Jan 22 12:42:06 2006
@@ -43,6 +43,6 @@
int ast_osp_terminate(int handle, int cause, time_t start, time_t duration);
-int ast_osp_validate(char *provider, char *token, int *handle, unsigned int *timeout, char *callerid, struct in_addr addr, char *extension);
+int ast_osp_validate(char *provider, char *token, int *handle, unsigned int *timeout, const char *callerid, struct in_addr addr, const char *extension);
#endif /* _ASTERISK_OSP_H */
Modified: trunk/res/res_osp.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_osp.c?rev=8443&r1=8442&r2=8443&view=diff
==============================================================================
--- trunk/res/res_osp.c (original)
+++ trunk/res/res_osp.c Sun Jan 22 12:42:06 2006
@@ -452,7 +452,7 @@
return retVal;
}
-int ast_osp_validate(char *provider, char *token, int *handle, unsigned int *timelimit, char *callerid, struct in_addr addr, char *extension)
+int ast_osp_validate(char *provider, char *token, int *handle, unsigned int *timelimit, const char *callerid, struct in_addr addr, const char *extension)
{
char tmp[256]="", *l, *n;
char iabuf[INET_ADDRSTRLEN];
More information about the svn-commits
mailing list