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 f18b2f22dee6aba7d57f333f94f8910b645394ec
Author: liuchan3 <[email protected]>
AuthorDate: Wed Nov 11 11:11:13 2026 +0800

    graphics/input/getevent: Fix nxstyle issues.
    
    Current nxstyle reports issues that predate its latest rules:
    - add the missing blank line after the declaration in signal_handler()
    - indent the getopt switch cases two spaces past the enclosing brace
    - wrap the add_input_device() call that now exceeds the line length
    
    Formatting only, no functional change.
    
    Assisted-by: OpenCode:claude-opus-5-5
    Signed-off-by: liuchan3 <[email protected]>
---
 graphics/input/getevent/getevent.c | 30 ++++++++++++++++--------------
 1 file changed, 16 insertions(+), 14 deletions(-)

diff --git a/graphics/input/getevent/getevent.c 
b/graphics/input/getevent/getevent.c
index c70f90d47..2380fd2ca 100644
--- a/graphics/input/getevent/getevent.c
+++ b/graphics/input/getevent/getevent.c
@@ -273,6 +273,7 @@ static void
 signal_handler(int signum, FAR siginfo_t *info, FAR void *context)
 {
   FAR volatile sig_atomic_t *running = info->si_user;
+
   *running = 0;
 }
 
@@ -503,20 +504,21 @@ static int parse_commandline(FAR struct 
input_devices_ctx_s *ctx,
     {
       switch (ch)
         {
-        case 'm':
-          ret = add_input_device(ctx, NULL, read_mouse_event, optarg);
-          break;
-        case 't':
-          ret = add_input_device(ctx, touch_init, read_touch_event, optarg);
-          break;
-        case 'k':
-          ret = add_input_device(ctx, NULL, read_keyboard_event, optarg);
-          break;
-        case '?':
-        case 'h':
-        default:
-          show_usage();
-          break;
+          case 'm':
+            ret = add_input_device(ctx, NULL, read_mouse_event, optarg);
+            break;
+          case 't':
+            ret = add_input_device(ctx, touch_init, read_touch_event,
+                                   optarg);
+            break;
+          case 'k':
+            ret = add_input_device(ctx, NULL, read_keyboard_event, optarg);
+            break;
+          case '?':
+          case 'h':
+          default:
+            show_usage();
+            break;
         }
 
       if (ret < 0)

Reply via email to