1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-01 11:26:53 +03:00

tests: sync port number type with the rest of codebase

Tested via #1257
This commit is contained in:
Viktor Szakats
2023-12-01 14:44:50 +00:00
parent ecdf519911
commit eb996af851

View File

@ -25,7 +25,7 @@
#include <stdlib.h> /* for getenv() */
static const char *hostname = "127.0.0.1";
static const unsigned short port_number = 4711;
static const int port_number = 4711;
static const char *pubkey = "key_rsa.pub";
static const char *privkey = "key_rsa";
static const char *username = "username";
@ -104,7 +104,7 @@ int main(int argc, char *argv[])
}
sin.sin_family = AF_INET;
sin.sin_port = htons(port_number);
sin.sin_port = htons((unsigned short)port_number);
sin.sin_addr.s_addr = hostaddr;
for(counter = 0; counter < 3; ++counter) {