comparison cli-tcpfwd.c @ 1239:00d7fc7b112b

Merge pull request #21 from Chocobo1/fix Fix warnings
author Matt Johnston <matt@ucc.asn.au>
date Wed, 20 Jan 2016 21:24:36 +0800
parents 888e3d17e962
children 52a456a3add0
comparison
equal deleted inserted replaced
1228:f7f2c3714269 1239:00d7fc7b112b
271 dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"", 271 dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"",
272 origaddr, origport); 272 origaddr, origport);
273 goto out; 273 goto out;
274 } 274 }
275 275
276 snprintf(portstring, sizeof(portstring), "%d", fwd->connectport); 276 snprintf(portstring, sizeof(portstring), "%u", fwd->connectport);
277 channel->conn_pending = connect_remote(fwd->connectaddr, portstring, channel_connect_done, channel); 277 channel->conn_pending = connect_remote(fwd->connectaddr, portstring, channel_connect_done, channel);
278 278
279 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; 279 channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;
280 280
281 err = SSH_OPEN_IN_PROGRESS; 281 err = SSH_OPEN_IN_PROGRESS;