diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2007-01-06 00:13:33 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2007-01-06 00:13:33 +0000 |
commit | 37182c873e93244ae1181130be60e0de2b209ed4 (patch) | |
tree | 774e467428b4c8e37cd6b282ee0b287d0e10b525 /funcs/func_db.c | |
parent | 4a6ed271f505fcc027cc94a92737f29f83aff153 (diff) |
finish const-ifying ast_func_read()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_db.c')
-rw-r--r-- | funcs/func_db.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/funcs/func_db.c b/funcs/func_db.c index 2ad135fa0..783e1fac3 100644 --- a/funcs/func_db.c +++ b/funcs/func_db.c @@ -44,7 +44,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/app.h" #include "asterisk/astdb.h" -static int function_db_read(struct ast_channel *chan, char *cmd, +static int function_db_read(struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) { AST_DECLARE_APP_ARGS(args, @@ -76,7 +76,7 @@ static int function_db_read(struct ast_channel *chan, char *cmd, return 0; } -static int function_db_write(struct ast_channel *chan, char *cmd, char *parse, +static int function_db_write(struct ast_channel *chan, const char *cmd, char *parse, const char *value) { AST_DECLARE_APP_ARGS(args, @@ -116,7 +116,7 @@ static struct ast_custom_function db_function = { .write = function_db_write, }; -static int function_db_exists(struct ast_channel *chan, char *cmd, +static int function_db_exists(struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) { AST_DECLARE_APP_ARGS(args, @@ -160,7 +160,7 @@ static struct ast_custom_function db_exists_function = { .read = function_db_exists, }; -static int function_db_delete(struct ast_channel *chan, char* cmd, +static int function_db_delete(struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) { AST_DECLARE_APP_ARGS(args, |