|
|
@ -866,8 +866,8 @@ static char *xmldoc_get_syntax_cmd(struct ast_xml_node *fixnode, const char *nam
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct ast_str *syntax;
|
|
|
|
struct ast_str *syntax;
|
|
|
|
struct ast_xml_node *tmpnode, *node = fixnode;
|
|
|
|
struct ast_xml_node *tmpnode, *node = fixnode;
|
|
|
|
char *ret;
|
|
|
|
char *ret, *paramname;
|
|
|
|
const char *paramname, *paramtype, *attrname, *literal;
|
|
|
|
const char *paramtype, *attrname, *literal;
|
|
|
|
int required, isenum, first = 1, isliteral;
|
|
|
|
int required, isenum, first = 1, isliteral;
|
|
|
|
|
|
|
|
|
|
|
|
syntax = ast_str_create(128);
|
|
|
|
syntax = ast_str_create(128);
|
|
|
@ -941,7 +941,7 @@ static char *xmldoc_get_syntax_cmd(struct ast_xml_node *fixnode, const char *nam
|
|
|
|
(isenum || isliteral ? "" : ">"),
|
|
|
|
(isenum || isliteral ? "" : ">"),
|
|
|
|
(required ? "" : "]"));
|
|
|
|
(required ? "" : "]"));
|
|
|
|
first = 0;
|
|
|
|
first = 0;
|
|
|
|
ast_xml_free_attr(paramname);
|
|
|
|
ast_free(paramname);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* return a common string. */
|
|
|
|
/* return a common string. */
|
|
|
|