mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Fix a few trivial compiler warnings
[originally from svn r1001]
This commit is contained in:
parent
31d6765aca
commit
4b5a97fbee
3
ssh.c
3
ssh.c
@ -2870,7 +2870,7 @@ static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt)
|
|||||||
*/
|
*/
|
||||||
logevent("No username provided. Abandoning session.");
|
logevent("No username provided. Abandoning session.");
|
||||||
ssh_state = SSH_STATE_CLOSED;
|
ssh_state = SSH_STATE_CLOSED;
|
||||||
crReturn(1);
|
crReturnV;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
c_write_str("login as: ");
|
c_write_str("login as: ");
|
||||||
@ -3458,7 +3458,6 @@ static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt)
|
|||||||
* Potentially enable agent forwarding.
|
* Potentially enable agent forwarding.
|
||||||
*/
|
*/
|
||||||
if (cfg.agentfwd && agent_exists()) {
|
if (cfg.agentfwd && agent_exists()) {
|
||||||
char proto[20], data[64];
|
|
||||||
logevent("Requesting OpenSSH-style agent forwarding");
|
logevent("Requesting OpenSSH-style agent forwarding");
|
||||||
ssh2_pkt_init(SSH2_MSG_CHANNEL_REQUEST);
|
ssh2_pkt_init(SSH2_MSG_CHANNEL_REQUEST);
|
||||||
ssh2_pkt_adduint32(mainchan->remoteid);
|
ssh2_pkt_adduint32(mainchan->remoteid);
|
||||||
|
@ -592,7 +592,7 @@ void zlib_compress_init(void) {
|
|||||||
*/
|
*/
|
||||||
int zlib_disable_compression(void) {
|
int zlib_disable_compression(void) {
|
||||||
struct Outbuf *out = (struct Outbuf *)ectx.userdata;
|
struct Outbuf *out = (struct Outbuf *)ectx.userdata;
|
||||||
int n, startbits;
|
int n;
|
||||||
|
|
||||||
out->comp_disabled = TRUE;
|
out->comp_disabled = TRUE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user