diff options
Diffstat (limited to 'libssh/connect.c')
-rw-r--r-- | libssh/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/connect.c b/libssh/connect.c index d376738..b7d9a72 100644 --- a/libssh/connect.c +++ b/libssh/connect.c @@ -184,7 +184,7 @@ static int getai(ssh_session session, const char *host, int port, struct addrinf if (port == 0) { hints.ai_flags = AI_PASSIVE; } else { - snprintf(s_port, sizeof(s_port), "%hu", port); + snprintf(s_port, sizeof(s_port), "%hu", (unsigned short)port); service = s_port; #ifdef AI_NUMERICSERV hints.ai_flags=AI_NUMERICSERV; |