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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user