From fd0b69a4e7f57297f9c011c75820432d693e21a5 Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 23 Jul 2007 19:51:41 +0000 Subject: Merge the dialplan_aesthetics branch. Most of this patch simply converts applications using old methods of parsing arguments to using the standard macros. However, the big change is that the really old way of specifying application and arguments separated by a comma will no longer work (e.g. NoOp,foo|bar). Instead, the way that has been recommended since long before 1.0 will become the only method available (e.g. NoOp(foo,bar). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76703 f38db490-d61c-443f-a65b-d21fe96a405b --- funcs/func_cut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'funcs/func_cut.c') diff --git a/funcs/func_cut.c b/funcs/func_cut.c index 41710b978..4466e3269 100644 --- a/funcs/func_cut.c +++ b/funcs/func_cut.c @@ -78,7 +78,7 @@ static int sort_internal(struct ast_channel *chan, char *data, char *buffer, siz strings = ast_strdupa(data); for (ptrkey = strings; *ptrkey; ptrkey++) { - if (*ptrkey == '|') + if (*ptrkey == ',') count++; } @@ -88,7 +88,7 @@ static int sort_internal(struct ast_channel *chan, char *data, char *buffer, siz /* Parse each into a struct */ count2 = 0; - while ((ptrkey = strsep(&strings, "|"))) { + while ((ptrkey = strsep(&strings, ","))) { ptrvalue = index(ptrkey, ':'); if (!ptrvalue) { count--; -- cgit v1.2.3