From 7df4257dbbe39b161535f30bd6fc8ac4099176b4 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Sun, 22 Jan 2006 18:42:06 +0000 Subject: [PATCH] eliminate some compiler warnings git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8443 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 4 ++-- include/asterisk/astosp.h | 2 +- res/res_osp.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index e05793c9b9..88ec193ed3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -469,7 +469,7 @@ struct sip_pkt; /*! \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 @@ static int sip_call(struct ast_channel *ast, char *dest, int timeout) 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; diff --git a/include/asterisk/astosp.h b/include/asterisk/astosp.h index ee809bbc2c..9781ca6390 100644 --- a/include/asterisk/astosp.h +++ b/include/asterisk/astosp.h @@ -43,6 +43,6 @@ int ast_osp_next(struct ast_osp_result *result, int cause); 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 */ diff --git a/res/res_osp.c b/res/res_osp.c index eb92f4862a..339096a4a9 100644 --- a/res/res_osp.c +++ b/res/res_osp.c @@ -452,7 +452,7 @@ static int loadPemPrivateKey(unsigned char *FileName, unsigned char *buffer, int 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];