mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
fixes some coding guideline issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@271300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -991,7 +991,6 @@ int get_in_brackets_full(char *tmp,char **out,char **residue)
|
|||||||
*residue = "";
|
*residue = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (ast_strlen_zero(tmp)) {
|
if (ast_strlen_zero(tmp)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -1043,17 +1042,18 @@ int get_in_brackets_full(char *tmp,char **out,char **residue)
|
|||||||
if (out) {
|
if (out) {
|
||||||
*out = tmp;
|
*out = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *get_in_brackets(char *tmp)
|
char *get_in_brackets(char *tmp)
|
||||||
{
|
{
|
||||||
char *out;
|
char *out;
|
||||||
if((get_in_brackets_full(tmp, &out, NULL))) {
|
|
||||||
return tmp;
|
if ((get_in_brackets_full(tmp, &out, NULL))) {
|
||||||
} else {
|
return tmp;
|
||||||
return out;
|
}
|
||||||
}
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
AST_TEST_DEFINE(get_in_brackets_test)
|
AST_TEST_DEFINE(get_in_brackets_test)
|
||||||
|
Reference in New Issue
Block a user