mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +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);
|
signame = buf_getstring(ses.payload, NULL);
|
||||||
|
|
||||||
i = 0;
|
for (i = 0; signames[i].name != NULL; i++) {
|
||||||
while (signames[i].name != 0) {
|
|
||||||
if (strcmp(signames[i].name, signame) == 0) {
|
if (strcmp(signames[i].name, signame) == 0) {
|
||||||
sig = signames[i].signal;
|
sig = signames[i].signal;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m_free(signame);
|
m_free(signame);
|
||||||
|
Loading…
Reference in New Issue
Block a user