mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-15 22:38:08 +00:00
finish const-ifying ast_func_read()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -38,7 +38,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
#include "asterisk/pbx.h"
|
||||
#include "asterisk/utils.h"
|
||||
|
||||
static int global_read(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len)
|
||||
static int global_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
|
||||
{
|
||||
const char *var = pbx_builtin_getvar_helper(NULL, data);
|
||||
|
||||
@@ -50,7 +50,7 @@ static int global_read(struct ast_channel *chan, char *cmd, char *data, char *bu
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int global_write(struct ast_channel *chan, char *cmd, char *data, const char *value)
|
||||
static int global_write(struct ast_channel *chan, const char *cmd, char *data, const char *value)
|
||||
{
|
||||
pbx_builtin_setvar_helper(NULL, data, value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user