Skip to content
Snippets Groups Projects
Commit 5f446b24 authored by Matt O'Gorman's avatar Matt O'Gorman
Browse files

minor fixes to commit 10934 from bug#6257

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 418a8664
Branches
Tags
No related merge requests found
...@@ -204,7 +204,7 @@ static struct ast_custom_function array_function = { ...@@ -204,7 +204,7 @@ static struct ast_custom_function array_function = {
"entire argument, since Set can take multiple arguments itself.\n", "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; char *bufptr = buf, *dataptr = data;
*bufptr++ = '"'; *bufptr++ = '"';
...@@ -223,14 +223,14 @@ static char *builtin_function_quote(struct ast_channel *chan, char *cmd, char *d ...@@ -223,14 +223,14 @@ static char *builtin_function_quote(struct ast_channel *chan, char *cmd, char *d
} }
*bufptr++ = '"'; *bufptr++ = '"';
*bufptr = '\0'; *bufptr = '\0';
return buf; return 0;
} }
static struct ast_custom_function quote_function = { static struct ast_custom_function quote_function = {
.name = "QUOTE", .name = "QUOTE",
.synopsis = "Quotes a given string, escaping embedded quotes as necessary", .synopsis = "Quotes a given string, escaping embedded quotes as necessary",
.syntax = "QUOTE(<string>)", .syntax = "QUOTE(<string>)",
.read = builtin_function_quote, .read = quote,
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment