diff options
author | 2015-10-15 23:51:40 +0000 | |
---|---|---|
committer | 2015-10-15 23:51:40 +0000 | |
commit | 12b6b6cb200430ee535df72dfc952cd08156b937 (patch) | |
tree | 61f3e929042e3a815879767db533f4bd8bf74262 /usr.bin/ssh/ssh.c | |
parent | Do not abuse .Nm for emphasis; (diff) | |
download | wireguard-openbsd-12b6b6cb200430ee535df72dfc952cd08156b937.tar.xz wireguard-openbsd-12b6b6cb200430ee535df72dfc952cd08156b937.zip |
fix some signed/unsigned integer type mismatches in format
strings; reported by Nicholas Lemonias
Diffstat (limited to '')
-rw-r--r-- | usr.bin/ssh/ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 37f0d5a580f..56e1bf531fc 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.426 2015/09/24 06:15:11 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.427 2015/10/15 23:51:40 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -235,7 +235,7 @@ resolve_host(const char *name, int port, int logerr, char *cname, size_t clen) if (port <= 0) port = default_ssh_port(); - snprintf(strport, sizeof strport, "%u", port); + snprintf(strport, sizeof strport, "%d", port); memset(&hints, 0, sizeof(hints)); hints.ai_family = options.address_family == -1 ? AF_UNSPEC : options.address_family; |