fix Windows warnings: getpid, htole64, gettimeofday, socket_t mismatches, radix min

This commit is contained in:
Evgeny committed 2026-07-22 09:08:19 +03:00
1 parent 14dd90365a
commit 1be007f292
6 files changed
+10 -5

No files matched your search

+1 -1
View File
@@ -528,7 +528,7 @@ void dummynet_reset_stats(struct dummynet* dn, int direction) {
}
/* Возвращает файловый дескриптор сокета */
int dummynet_get_socket(struct dummynet* dn) {
socket_t dummynet_get_socket(struct dummynet* dn) {
if (!dn) return SOCKET_INVALID;
return dn->sock;
}
+2 -1
View File
@@ -28,6 +28,7 @@ extern "C" {
#include <stdint.h>
#include <stddef.h>
#include "../lib/socket_compat.h"
// Forward declarations
struct UASYNC;
@@ -127,7 +128,7 @@ void dummynet_reset_stats(struct dummynet* dn, int direction);
* @param dn Контекст dummynet
* @return socket_t или SOCKET_INVALID
*/
int dummynet_get_socket(struct dummynet* dn);
socket_t dummynet_get_socket(struct dummynet* dn);
/**
* @brief Возвращает listen_port