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 4d5f60005c6d91c76e4a585fe3102aab50119ec6 Author: Felipe Moura <[email protected]> AuthorDate: Sat Jul 4 14:32:28 2026 -0300 netutils/dropbear: add scp support via SSH exec requests Code Clean up - Remove unnecessary code. Signed-off-by: Felipe Moura <[email protected]> --- netutils/dropbear/dropbear_nshsession.c | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/netutils/dropbear/dropbear_nshsession.c b/netutils/dropbear/dropbear_nshsession.c index e1afc1e51..0af7e68ea 100644 --- a/netutils/dropbear/dropbear_nshsession.c +++ b/netutils/dropbear/dropbear_nshsession.c @@ -47,33 +47,6 @@ struct dropbear_nshsession_s struct winsize win; }; -struct dropbear_signal_name_s -{ - FAR const char *name; - int signo; -}; - -/**************************************************************************** - * Private Data - ****************************************************************************/ - -static const struct dropbear_signal_name_s g_dropbear_signals[] = -{ - { "ABRT", SIGABRT }, - { "ALRM", SIGALRM }, - { "FPE", SIGFPE }, - { "HUP", SIGHUP }, - { "ILL", SIGILL }, - { "INT", SIGINT }, - { "KILL", SIGKILL }, - { "PIPE", SIGPIPE }, - { "QUIT", SIGQUIT }, - { "SEGV", SIGSEGV }, - { "TERM", SIGTERM }, - { "USR1", SIGUSR1 }, - { "USR2", SIGUSR2 }, -}; - /**************************************************************************** * Private Functions ****************************************************************************/ @@ -640,11 +613,11 @@ static int dropbear_signal_from_name(FAR const char *name) { int i; - for (i = 0; i < nitems(g_dropbear_signals); i++) + for (i = 0; signames[i].name != NULL; i++) { - if (strcmp(name, g_dropbear_signals[i].name) == 0) + if (strcmp(name, signames[i].name) == 0) { - return g_dropbear_signals[i].signo; + return signames[i].signal; } }
