This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit a3112db9d60dea6304f59d9de95fb35c99e1fa8e Author: archer <[email protected]> AuthorDate: Fri Oct 23 22:24:17 2026 +0800 netutils/xmlrpc: Fix nxstyle alignment errors in xmlparser.c Fix nxstyle "Bad alignment" errors in the switch-case block of xmlrpc_parseparam(). Align case labels and body statements to conform with the NuttX coding standard. Signed-off-by: chao an <[email protected]> --- netutils/xmlrpc/xmlparser.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/netutils/xmlrpc/xmlparser.c b/netutils/xmlrpc/xmlparser.c index f39e4b3f2..ca4d6de68 100644 --- a/netutils/xmlrpc/xmlparser.c +++ b/netutils/xmlrpc/xmlparser.c @@ -233,22 +233,22 @@ static int xmlrpc_parseparam(struct parsebuf_s *pbuf) switch (g_xmlcall.args[g_xmlcall.argsize]) { - case 'i': - case 'b': - g_xmlcall.arguments[g_xmlcall.argsize].u.i = atoi(g_data); - break; - - case 'd': - g_xmlcall.arguments[g_xmlcall.argsize].u.d = atof(g_data); - break; - - case 's': - strlcpy(g_xmlcall.arguments[g_xmlcall.argsize].u.string, g_data, - sizeof(g_xmlcall.arguments[g_xmlcall.argsize].u.string)); - break; - - default: - return XMLRPC_PARSE_ERROR; + case 'i': + case 'b': + g_xmlcall.arguments[g_xmlcall.argsize].u.i = atoi(g_data); + break; + + case 'd': + g_xmlcall.arguments[g_xmlcall.argsize].u.d = atof(g_data); + break; + + case 's': + strlcpy(g_xmlcall.arguments[g_xmlcall.argsize].u.string, g_data, + sizeof(g_xmlcall.arguments[g_xmlcall.argsize].u.string)); + break; + + default: + return XMLRPC_PARSE_ERROR; } g_xmlcall.argsize++;
