]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a few trivial compiler warnings
authorSimon Tatham <anakin@pobox.com>
Thu, 15 Mar 2001 11:39:17 +0000 (11:39 +0000)
committerSimon Tatham <anakin@pobox.com>
Thu, 15 Mar 2001 11:39:17 +0000 (11:39 +0000)
[originally from svn r1001]

ssh.c
sshzlib.c

diff --git a/ssh.c b/ssh.c
index db6f90cbae178eea0fa6828d8a0208326d760053..0db1655e68517b3a1dfeb14d2c0920fc7d6830f4 100644 (file)
--- 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);
index 926a2d01eec18cea987391121db24b996cd44bbc..3da133f8f4d69ce64269879fcc92af144e494747 100644 (file)
--- 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;