mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-26 23:44:35 +02:00
Reverting unwanted code style changes
This commit is contained in:
parent
e8c353d766
commit
0f1fcb322a
12
channels.c
12
channels.c
@ -1735,11 +1735,9 @@ channel_handle_wfd(Channel *c, fd_set *readset, fd_set *writeset)
|
|||||||
chan_write_failed(c);
|
chan_write_failed(c);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
} else if (c->datagram) {
|
||||||
else if (c->datagram) {
|
|
||||||
buf = data = buffer_get_string(&c->output, &dlen);
|
buf = data = buffer_get_string(&c->output, &dlen);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
buf = data = buffer_ptr(&c->output);
|
buf = data = buffer_ptr(&c->output);
|
||||||
dlen = buffer_len(&c->output);
|
dlen = buffer_len(&c->output);
|
||||||
}
|
}
|
||||||
@ -1778,13 +1776,11 @@ channel_handle_wfd(Channel *c, fd_set *readset, fd_set *writeset)
|
|||||||
debug2("channel %d: not open", c->self);
|
debug2("channel %d: not open", c->self);
|
||||||
chan_mark_dead(c);
|
chan_mark_dead(c);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
} else if (compat13) {
|
||||||
else if (compat13) {
|
|
||||||
buffer_clear(&c->output);
|
buffer_clear(&c->output);
|
||||||
debug2("channel %d: input draining.", c->self);
|
debug2("channel %d: input draining.", c->self);
|
||||||
c->type = SSH_CHANNEL_INPUT_DRAINING;
|
c->type = SSH_CHANNEL_INPUT_DRAINING;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
chan_write_failed(c);
|
chan_write_failed(c);
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user