[asterisk-commits] trunk r10959 - /trunk/funcs/func_strings.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Feb 23 16:36:53 MST 2006


Author: mogorman
Date: Thu Feb 23 17:36:53 2006
New Revision: 10959

URL: http://svn.digium.com/view/asterisk?rev=10959&view=rev
Log:
minor fixes to commit 10934 from bug#6257 

Modified:
    trunk/funcs/func_strings.c

Modified: trunk/funcs/func_strings.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_strings.c?rev=10959&r1=10958&r2=10959&view=diff
==============================================================================
--- trunk/funcs/func_strings.c (original)
+++ trunk/funcs/func_strings.c Thu Feb 23 17:36:53 2006
@@ -204,7 +204,7 @@
 		"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 @@
 	}
 	*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,
 };
 
 



More information about the asterisk-commits mailing list