This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit f69ab7a7a2963e706c140b72830036b5ca0b3992
Author: Marco Casaroli <[email protected]>
AuthorDate: Tue Nov 10 23:53:50 2026 +0100

    libs/libc/net: Fix the indentation of the switch in inet_pton().
    
    The case labels of the switch in inet_pton() were at the indentation
    of the braces.  nxstyle reports "Bad alignment" for them.  The error
    is older than the next change of this file.  Whitespace only.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 libs/libc/net/lib_inetpton.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/libs/libc/net/lib_inetpton.c b/libs/libc/net/lib_inetpton.c
index e2ef39409a2..d26ef5b8c7d 100644
--- a/libs/libc/net/lib_inetpton.c
+++ b/libs/libc/net/lib_inetpton.c
@@ -392,17 +392,17 @@ int inet_pton(int af, FAR const char *src, FAR void *dest)
   switch (af)
     {
 #if defined(CONFIG_NET_IPv4) || defined(CONFIG_LIBC_IPv4_ADDRCONV)
-    case AF_INET:
-      return inet_ipv4_pton(src, dest);
+      case AF_INET:
+        return inet_ipv4_pton(src, dest);
 #endif
 
 #if defined(CONFIG_NET_IPv6) || defined(CONFIG_LIBC_IPv6_ADDRCONV)
-    case AF_INET6:
-      return inet_ipv6_pton(src, dest);
+      case AF_INET6:
+        return inet_ipv6_pton(src, dest);
 #endif
 
-    default:
-      set_errno(EAFNOSUPPORT);
-      return ERROR;
+      default:
+        set_errno(EAFNOSUPPORT);
+        return ERROR;
     }
 }

Reply via email to