diff options
author | Matt Johnston <matt@ucc.asn.au> | 2016-01-20 21:24:36 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2016-01-20 21:24:36 +0800 |
commit | 1fc1559d156648bac94d3fa51901a89619fceac7 (patch) | |
tree | 2d33c8c29105a52aca94492094ad92e7196162f0 /cli-tcpfwd.c | |
parent | de70b02c2f357d6a2fd51b2de3bec2e0f345d5b1 (diff) | |
parent | de1993a1fdc12355ee90da357128d3ec43522c57 (diff) |
Merge pull request #21 from Chocobo1/fix
Fix warnings
Diffstat (limited to 'cli-tcpfwd.c')
-rw-r--r-- | cli-tcpfwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-tcpfwd.c b/cli-tcpfwd.c index fec5dba..b32d9e0 100644 --- a/cli-tcpfwd.c +++ b/cli-tcpfwd.c @@ -273,7 +273,7 @@ static int newtcpforwarded(struct Channel * channel) { goto out; } - snprintf(portstring, sizeof(portstring), "%d", fwd->connectport); + snprintf(portstring, sizeof(portstring), "%u", fwd->connectport); channel->conn_pending = connect_remote(fwd->connectaddr, portstring, channel_connect_done, channel); channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; |