[asterisk-commits] russell: trunk r67853 - in /trunk:
include/asterisk/ res/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Jun 6 14:08:08 MST 2007
Author: russell
Date: Wed Jun 6 16:08:07 2007
New Revision: 67853
URL: http://svn.digium.com/view/asterisk?view=rev&rev=67853
Log:
Constify the return values of ast_parking_ext() and ast_pickup_ext()
Modified:
trunk/include/asterisk/features.h
trunk/res/res_features.c
Modified: trunk/include/asterisk/features.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/features.h?view=diff&rev=67853&r1=67852&r2=67853
==============================================================================
--- trunk/include/asterisk/features.h (original)
+++ trunk/include/asterisk/features.h Wed Jun 6 16:08:07 2007
@@ -73,10 +73,10 @@
/*! \brief Determine system parking extension
* Returns the call parking extension for drivers that provide special
call parking help */
-char *ast_parking_ext(void);
+const char *ast_parking_ext(void);
/*! \brief Determine system call pickup extension */
-char *ast_pickup_ext(void);
+const char *ast_pickup_ext(void);
/*! \brief Bridge a call, optionally allowing redirection */
int ast_bridge_call(struct ast_channel *chan, struct ast_channel *peer,struct ast_bridge_config *config);
Modified: trunk/res/res_features.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_features.c?view=diff&rev=67853&r1=67852&r2=67853
==============================================================================
--- trunk/res/res_features.c (original)
+++ trunk/res/res_features.c Wed Jun 6 16:08:07 2007
@@ -179,12 +179,12 @@
static pthread_t parking_thread;
-char *ast_parking_ext(void)
+const char *ast_parking_ext(void)
{
return parking_ext;
}
-char *ast_pickup_ext(void)
+const char *ast_pickup_ext(void)
{
return pickup_ext;
}
@@ -322,7 +322,7 @@
}
/*! \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)
ast_log(LOG_DEBUG, "Notification of state change to metermaids %s@%s\n", exten, context);
More information about the asterisk-commits
mailing list