summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-01-21 03:25:57 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-01-21 03:25:57 +0000
commitf7dd25f20c736d33b9fbc1e7b2b1d19095190cf1 (patch)
treec22e36cf65fdea592f69626d104eaa6b9b5b7d22 /main/pbx.c
parent8724e1c42ef774864f80a9cdaee0e900aa323ecd (diff)
Fix bug introduced during constification (reported by tzanger via IRC)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 62de9e501..c83e9638d 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -1415,11 +1415,11 @@ int ast_func_read(struct ast_channel *chan, const char *function, char *workspac
struct ast_custom_function *acfptr = ast_custom_function_find(copy);
if (acfptr == NULL)
- ast_log(LOG_ERROR, "Function %s not registered\n", function);
+ ast_log(LOG_ERROR, "Function %s not registered\n", copy);
else if (!acfptr->read)
- ast_log(LOG_ERROR, "Function %s cannot be read\n", function);
+ ast_log(LOG_ERROR, "Function %s cannot be read\n", copy);
else
- return acfptr->read(chan, function, args, workspace, len);
+ return acfptr->read(chan, copy, args, workspace, len);
return -1;
}
@@ -1430,11 +1430,11 @@ int ast_func_write(struct ast_channel *chan, const char *function, const char *v
struct ast_custom_function *acfptr = ast_custom_function_find(copy);
if (acfptr == NULL)
- ast_log(LOG_ERROR, "Function %s not registered\n", function);
+ ast_log(LOG_ERROR, "Function %s not registered\n", copy);
else if (!acfptr->write)
- ast_log(LOG_ERROR, "Function %s cannot be written to\n", function);
+ ast_log(LOG_ERROR, "Function %s cannot be written to\n", copy);
else
- return acfptr->write(chan, function, args, value);
+ return acfptr->write(chan, copy, args, value);
return -1;
}