1
mirror of https://github.com/hashcat/hashcat synced 2024-11-24 14:27:14 +01:00

silence clang32/64 warning about sign comparisons

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2023-08-09 17:29:50 -07:00
parent 419b693f9d
commit 2e7085f9a7

View File

@ -19,6 +19,10 @@
#include <sys/sysctl.h>
#endif
#if defined (_WIN)
#include <winsock2.h>
#endif
static const char *const PA_000 = "OK";
static const char *const PA_001 = "Ignored due to comment";
static const char *const PA_002 = "Ignored due to zero length";
@ -908,7 +912,11 @@ int select_read_timeout (int sockfd, const int sec)
fd_set fds;
FD_ZERO (&fds);
#if defined(_WIN)
FD_SET ((SOCKET)sockfd, &fds);
#else
FD_SET (sockfd, &fds);
#endif
return select (sockfd + 1, &fds, NULL, NULL, &tv);
}
@ -923,7 +931,11 @@ int select_write_timeout (int sockfd, const int sec)
fd_set fds;
FD_ZERO (&fds);
#if defined(_WIN)
FD_SET ((SOCKET)sockfd, &fds);
#else
FD_SET (sockfd, &fds);
#endif
return select (sockfd + 1, NULL, &fds, NULL, &tv);
}