From: simon Date: Thu, 15 Mar 2001 11:39:17 +0000 (+0000) Subject: Fix a few trivial compiler warnings X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/dae2b91f8146b8c5a23c6ec0f70d4e33d031b8d3?ds=sidebyside Fix a few trivial compiler warnings git-svn-id: svn://svn.tartarus.org/sgt/putty@1001 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index db6f90cb..0db1655e 100644 --- a/ssh.c +++ b/ssh.c @@ -2870,7 +2870,7 @@ static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt) */ logevent("No username provided. Abandoning session."); ssh_state = SSH_STATE_CLOSED; - crReturn(1); + crReturnV; } } else { 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. */ if (cfg.agentfwd && agent_exists()) { - char proto[20], data[64]; logevent("Requesting OpenSSH-style agent forwarding"); ssh2_pkt_init(SSH2_MSG_CHANNEL_REQUEST); ssh2_pkt_adduint32(mainchan->remoteid); diff --git a/sshzlib.c b/sshzlib.c index 926a2d01..3da133f8 100644 --- a/sshzlib.c +++ b/sshzlib.c @@ -592,7 +592,7 @@ void zlib_compress_init(void) { */ int zlib_disable_compression(void) { struct Outbuf *out = (struct Outbuf *)ectx.userdata; - int n, startbits; + int n; out->comp_disabled = TRUE;