mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 19:52:48 +00:00
A few misses from constification
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43366 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -733,7 +733,7 @@ static int alarmreceiver_exec(struct ast_channel *chan, void *data)
|
|||||||
static int load_config(void)
|
static int load_config(void)
|
||||||
{
|
{
|
||||||
struct ast_config *cfg;
|
struct ast_config *cfg;
|
||||||
char *p;
|
const char *p;
|
||||||
|
|
||||||
/* Read in the config file */
|
/* Read in the config file */
|
||||||
|
|
||||||
|
@@ -149,7 +149,7 @@ AST_APP_OPTIONS(followme_opts, {
|
|||||||
static int ynlongest = 0;
|
static int ynlongest = 0;
|
||||||
static time_t start_time, answer_time, end_time;
|
static time_t start_time, answer_time, end_time;
|
||||||
|
|
||||||
static char *featuredigittostr;
|
static const char *featuredigittostr;
|
||||||
static int featuredigittimeout = 5000; /*!< Feature Digit Timeout */
|
static int featuredigittimeout = 5000; /*!< Feature Digit Timeout */
|
||||||
static const char *defaultmoh = "default"; /*!< Default Music-On-Hold Class */
|
static const char *defaultmoh = "default"; /*!< Default Music-On-Hold Class */
|
||||||
|
|
||||||
@@ -288,9 +288,9 @@ static int reload_followme(void)
|
|||||||
int timeout;
|
int timeout;
|
||||||
char *timeoutstr;
|
char *timeoutstr;
|
||||||
int numorder;
|
int numorder;
|
||||||
char *takecallstr;
|
const char *takecallstr;
|
||||||
char *declinecallstr;
|
const char *declinecallstr;
|
||||||
char *tmpstr;
|
const char *tmpstr;
|
||||||
|
|
||||||
cfg = ast_config_load("followme.conf");
|
cfg = ast_config_load("followme.conf");
|
||||||
if (!cfg) {
|
if (!cfg) {
|
||||||
|
@@ -1008,7 +1008,7 @@ static int read_agent_config(void)
|
|||||||
struct ast_config *cfg;
|
struct ast_config *cfg;
|
||||||
struct ast_variable *v;
|
struct ast_variable *v;
|
||||||
struct agent_pvt *p;
|
struct agent_pvt *p;
|
||||||
char *general_val;
|
const char *general_val;
|
||||||
|
|
||||||
group = 0;
|
group = 0;
|
||||||
autologoff = 0;
|
autologoff = 0;
|
||||||
|
Reference in New Issue
Block a user