summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinclude/asterisk/manager.h12
-rwxr-xr-xmanager.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h
index 6629e72c9..2c33d54f0 100755
--- a/include/asterisk/manager.h
+++ b/include/asterisk/manager.h
@@ -92,11 +92,11 @@ struct message {
struct manager_action {
/*! Name of the action */
- char *action;
+ const char *action;
/*! Short description of the action */
- char *synopsis;
+ const char *synopsis;
/*! Detailed description of the action */
- char *description;
+ const char *description;
/*! Permission required for action. EVENT_FLAG_* */
int authority;
/*! Function to be called */
@@ -120,11 +120,11 @@ int ast_carefulwrite(int fd, char *s, int len, int timeoutms);
\param description Help text, several lines
*/
int ast_manager_register2(
- char *action,
+ const char *action,
int authority,
int (*func)(struct mansession *s, struct message *m),
- char *synopsis,
- char *description);
+ const char *synopsis,
+ const char *description);
/*! Unregister a registred manager command */
/*! \param action Name of registred Action:
diff --git a/manager.c b/manager.c
index 55cf1ec75..0d3d5e82e 100755
--- a/manager.c
+++ b/manager.c
@@ -1470,7 +1470,7 @@ static int ast_manager_register_struct(struct manager_action *act)
return 0;
}
-int ast_manager_register2(char *action, int auth, int (*func)(struct mansession *s, struct message *m), char *synopsis, char *description)
+int ast_manager_register2(const char *action, int auth, int (*func)(struct mansession *s, struct message *m), const char *synopsis, const char *description)
{
struct manager_action *cur;