[svn-commits] dvossel: trunk r271300 - /trunk/channels/sip/reqresp_parser.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jun 17 16:23:44 CDT 2010
Author: dvossel
Date: Thu Jun 17 16:23:41 2010
New Revision: 271300
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=271300
Log:
fixes some coding guideline issue
Modified:
trunk/channels/sip/reqresp_parser.c
Modified: trunk/channels/sip/reqresp_parser.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sip/reqresp_parser.c?view=diff&rev=271300&r1=271299&r2=271300
==============================================================================
--- trunk/channels/sip/reqresp_parser.c (original)
+++ trunk/channels/sip/reqresp_parser.c Thu Jun 17 16:23:41 2010
@@ -991,7 +991,6 @@
*residue = "";
}
-
if (ast_strlen_zero(tmp)) {
return 1;
}
@@ -1043,17 +1042,18 @@
if (out) {
*out = tmp;
}
+
return 1;
}
char *get_in_brackets(char *tmp)
{
char *out;
- if((get_in_brackets_full(tmp, &out, NULL))) {
- return tmp;
- } else {
- return out;
-}
+
+ if ((get_in_brackets_full(tmp, &out, NULL))) {
+ return tmp;
+ }
+ return out;
}
AST_TEST_DEFINE(get_in_brackets_test)
More information about the svn-commits
mailing list