mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 02:46:58 +00:00
small tidy of "signal" while loop
This commit is contained in:
parent
d2bfa6aedc
commit
6c571c54e5
@ -437,13 +437,11 @@ static int sessionsignal(const struct ChanSess *chansess) {
|
||||
|
||||
signame = buf_getstring(ses.payload, NULL);
|
||||
|
||||
i = 0;
|
||||
while (signames[i].name != 0) {
|
||||
for (i = 0; signames[i].name != NULL; i++) {
|
||||
if (strcmp(signames[i].name, signame) == 0) {
|
||||
sig = signames[i].signal;
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
m_free(signame);
|
||||
|
Loading…
Reference in New Issue
Block a user