1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix a few trivial compiler warnings

[originally from svn r1001]
This commit is contained in:
Simon Tatham 2001-03-15 11:39:17 +00:00
parent 31d6765aca
commit 4b5a97fbee
2 changed files with 2 additions and 3 deletions

3
ssh.c
View File

@ -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);

View File

@ -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;