diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-23 23:36:53 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-23 23:36:53 +0000 |
commit | 15e5f0999aa44e3fccfb73e5d635f87e1b62d134 (patch) | |
tree | c70dad81db4d0c880e2f116c09014d1adbf7fe9f /funcs | |
parent | 5472629adfa6606f42f9fb91060da943dfa9fef8 (diff) |
minor fixes to commit 10934 from bug#6257
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10959 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_strings.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/funcs/func_strings.c b/funcs/func_strings.c index 059c1ce21..79bc391b0 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -204,7 +204,7 @@ static struct ast_custom_function array_function = { "entire argument, since Set can take multiple arguments itself.\n", }; -static char *builtin_function_quote(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) +static int quote(struct ast_channel *chan, char *cmd, char *data, char *buf, size_t len) { char *bufptr = buf, *dataptr = data; *bufptr++ = '"'; @@ -223,14 +223,14 @@ static char *builtin_function_quote(struct ast_channel *chan, char *cmd, char *d } *bufptr++ = '"'; *bufptr = '\0'; - return buf; + return 0; } static struct ast_custom_function quote_function = { .name = "QUOTE", .synopsis = "Quotes a given string, escaping embedded quotes as necessary", .syntax = "QUOTE(<string>)", - .read = builtin_function_quote, + .read = quote, }; |