mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
netutils/dropbear: add scp support via SSH exec requests
Code Clean up - Remove unnecessary code. Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
This commit is contained in:
parent
ec134a99a8
commit
4d5f60005c
1 changed files with 3 additions and 30 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue