mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 15:18:38 +00:00
Constify the return values of ast_parking_ext() and ast_pickup_ext()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -73,10 +73,10 @@ int ast_masq_park_call(struct ast_channel *rchan, struct ast_channel *host, int
|
|||||||
/*! \brief Determine system parking extension
|
/*! \brief Determine system parking extension
|
||||||
* Returns the call parking extension for drivers that provide special
|
* Returns the call parking extension for drivers that provide special
|
||||||
call parking help */
|
call parking help */
|
||||||
char *ast_parking_ext(void);
|
const char *ast_parking_ext(void);
|
||||||
|
|
||||||
/*! \brief Determine system call pickup extension */
|
/*! \brief Determine system call pickup extension */
|
||||||
char *ast_pickup_ext(void);
|
const char *ast_pickup_ext(void);
|
||||||
|
|
||||||
/*! \brief Bridge a call, optionally allowing redirection */
|
/*! \brief Bridge a call, optionally allowing redirection */
|
||||||
int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer,struct ast_bridge_config *config);
|
int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer,struct ast_bridge_config *config);
|
||||||
|
@@ -179,12 +179,12 @@ AST_MUTEX_DEFINE_STATIC(parking_lock); /*!< protects all static variables above
|
|||||||
|
|
||||||
static pthread_t parking_thread;
|
static pthread_t parking_thread;
|
||||||
|
|
||||||
char *ast_parking_ext(void)
|
const char *ast_parking_ext(void)
|
||||||
{
|
{
|
||||||
return parking_ext;
|
return parking_ext;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *ast_pickup_ext(void)
|
const char *ast_pickup_ext(void)
|
||||||
{
|
{
|
||||||
return pickup_ext;
|
return pickup_ext;
|
||||||
}
|
}
|
||||||
@@ -322,7 +322,7 @@ static int adsi_announce_park(struct ast_channel *chan, char *parkingexten)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \brief Notify metermaids that we've changed an extension */
|
/*! \brief Notify metermaids that we've changed an extension */
|
||||||
static void notify_metermaids(char *exten, char *context)
|
static void notify_metermaids(const char *exten, char *context)
|
||||||
{
|
{
|
||||||
if (option_debug > 3)
|
if (option_debug > 3)
|
||||||
ast_log(LOG_DEBUG, "Notification of state change to metermaids %s@%s\n", exten, context);
|
ast_log(LOG_DEBUG, "Notification of state change to metermaids %s@%s\n", exten, context);
|
||||||
|
Reference in New Issue
Block a user