1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

Fixed warnings with clang

This commit is contained in:
Aris Adamantiadis
2010-04-28 17:23:47 +02:00
parent 84db436e3b
commit ecbe577be3
2 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ static int getai(ssh_session session, const char *host, int port, struct addrinf
if (port == 0) { if (port == 0) {
hints.ai_flags = AI_PASSIVE; hints.ai_flags = AI_PASSIVE;
} else { } else {
snprintf(s_port, sizeof(s_port), "%hu", port); snprintf(s_port, sizeof(s_port), "%hu", (unsigned short)port);
service = s_port; service = s_port;
#ifdef AI_NUMERICSERV #ifdef AI_NUMERICSERV
hints.ai_flags=AI_NUMERICSERV; hints.ai_flags=AI_NUMERICSERV;