diff options
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_agent.c | 2 | ||||
-rw-r--r-- | channels/chan_iax2.c | 4 | ||||
-rw-r--r-- | channels/chan_oss.c | 2 | ||||
-rw-r--r-- | channels/chan_sip.c | 18 | ||||
-rw-r--r-- | channels/iax2-provision.c | 2 | ||||
-rw-r--r-- | channels/iax2-provision.h | 2 |
6 files changed, 15 insertions, 15 deletions
diff --git a/channels/chan_agent.c b/channels/chan_agent.c index a59c84973..4905f4004 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -1622,7 +1622,7 @@ static int action_agent_logoff(struct mansession *s, struct message *m) return 0; } -static char *complete_agent_logoff_cmd(char *line, char *word, int pos, int state) +static char *complete_agent_logoff_cmd(const char *line, const char *word, int pos, int state) { struct agent_pvt *p; char name[AST_MAX_AGENT]; diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 8e5bf2a79..02f6c9fa3 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -1970,7 +1970,7 @@ static int iax2_show_peer(int fd, int argc, char *argv[]) return RESULT_SUCCESS; } -static char *complete_iax2_show_peer(char *line, char *word, int pos, int state) +static char *complete_iax2_show_peer(const char *line, const char *word, int pos, int state) { int which = 0; struct iax2_peer *p; @@ -7631,7 +7631,7 @@ static int iax2_do_register(struct iax2_registry *reg) return 0; } -static char *iax2_prov_complete_template_3rd(char *line, char *word, int pos, int state) +static char *iax2_prov_complete_template_3rd(const char *line, const char *word, int pos, int state) { if (pos != 3) return NULL; diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 68d79c7b5..bbfa70ac6 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -975,7 +975,7 @@ static int console_autoanswer(int fd, int argc, char *argv[]) return RESULT_SUCCESS; } -static char *autoanswer_complete(char *line, char *word, int pos, int state) +static char *autoanswer_complete(const char *line, const char *word, int pos, int state) { int l = strlen(word); diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ffc867061..3942c4c54 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8401,7 +8401,7 @@ static int __sip_show_channels(int fd, int argc, char *argv[], int subscriptions } /*! \brief complete_sipch: Support routine for 'sip show channel' CLI ---*/ -static char *complete_sipch(char *line, char *word, int pos, int state) +static char *complete_sipch(const char *line, const char *word, int pos, int state) { int which=0; struct sip_pvt *cur; @@ -8422,7 +8422,7 @@ static char *complete_sipch(char *line, char *word, int pos, int state) } /*! \brief complete_sip_peer: Do completion on peer name ---*/ -static char *complete_sip_peer(char *word, int state, int flags2) +static char *complete_sip_peer(const char *word, const int state, int flags2) { char *result = NULL; int wordlen = strlen(word); @@ -8442,7 +8442,7 @@ static char *complete_sip_peer(char *word, int state, int flags2) } /*! \brief complete_sip_show_peer: Support routine for 'sip show peer' CLI ---*/ -static char *complete_sip_show_peer(char *line, char *word, int pos, int state) +static char *complete_sip_show_peer(const char *line, const char *word, int pos, int state) { if (pos == 3) return complete_sip_peer(word, state, 0); @@ -8451,7 +8451,7 @@ static char *complete_sip_show_peer(char *line, char *word, int pos, int state) } /*! \brief complete_sip_debug_peer: Support routine for 'sip debug peer' CLI ---*/ -static char *complete_sip_debug_peer(char *line, char *word, int pos, int state) +static char *complete_sip_debug_peer(const char *line, const char *word, int pos, int state) { if (pos == 3) return complete_sip_peer(word, state, 0); @@ -8460,7 +8460,7 @@ static char *complete_sip_debug_peer(char *line, char *word, int pos, int state) } /*! \brief complete_sip_user: Do completion on user name ---*/ -static char *complete_sip_user(char *word, int state, int flags2) +static char *complete_sip_user(const char *word, int state, int flags2) { char *result = NULL; int wordlen = strlen(word); @@ -8480,7 +8480,7 @@ static char *complete_sip_user(char *word, int state, int flags2) } /*! \brief complete_sip_show_user: Support routine for 'sip show user' CLI ---*/ -static char *complete_sip_show_user(char *line, char *word, int pos, int state) +static char *complete_sip_show_user(const char *line, const char *word, int pos, int state) { if (pos == 3) return complete_sip_user(word, state, 0); @@ -8489,7 +8489,7 @@ static char *complete_sip_show_user(char *line, char *word, int pos, int state) } /*! \brief complete_sipnotify: Support routine for 'sip notify' CLI ---*/ -static char *complete_sipnotify(char *line, char *word, int pos, int state) +static char *complete_sipnotify(const char *line, const char *word, int pos, int state) { char *c = NULL; @@ -8521,7 +8521,7 @@ static char *complete_sipnotify(char *line, char *word, int pos, int state) } /*! \brief complete_sip_prune_realtime_peer: Support routine for 'sip prune realtime peer' CLI ---*/ -static char *complete_sip_prune_realtime_peer(char *line, char *word, int pos, int state) +static char *complete_sip_prune_realtime_peer(const char *line, const char *word, int pos, int state) { if (pos == 4) return complete_sip_peer(word, state, SIP_PAGE2_RTCACHEFRIENDS); @@ -8529,7 +8529,7 @@ static char *complete_sip_prune_realtime_peer(char *line, char *word, int pos, i } /*! \brief complete_sip_prune_realtime_user: Support routine for 'sip prune realtime user' CLI ---*/ -static char *complete_sip_prune_realtime_user(char *line, char *word, int pos, int state) +static char *complete_sip_prune_realtime_user(const char *line, const char *word, int pos, int state) { if (pos == 4) return complete_sip_user(word, state, SIP_PAGE2_RTCACHEFRIENDS); diff --git a/channels/iax2-provision.c b/channels/iax2-provision.c index a61024d8e..990c0f002 100644 --- a/channels/iax2-provision.c +++ b/channels/iax2-provision.c @@ -154,7 +154,7 @@ static struct iax_template *iax_template_find(const char *s, int allowdead) return cur; } -char *iax_prov_complete_template(char *line, char *word, int pos, int state) +char *iax_prov_complete_template(const char *line, const char *word, int pos, int state) { struct iax_template *c; int which=0; diff --git a/channels/iax2-provision.h b/channels/iax2-provision.h index 343341fa3..976f57669 100644 --- a/channels/iax2-provision.h +++ b/channels/iax2-provision.h @@ -50,4 +50,4 @@ extern int iax_provision_reload(void); extern int iax_provision_unload(void); extern int iax_provision_build(struct iax_ie_data *provdata, unsigned int *signature, const char *template, int force); extern int iax_provision_version(unsigned int *signature, const char *template, int force); -extern char *iax_prov_complete_template(char *line, char *word, int pos, int state); +extern char *iax_prov_complete_template(const char *line, const char *word, int pos, int state); |