1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2026-09-19 09:51:28 +03:00

Fix incompatible pointer type warning in GetEthAdapterListInternal

Changed the type of `size` from `UINT` to `ULONG` in `BridgeWin32.c` to resolve a compiler warning (`-Wincompatible-pointer-types`). The `PacketGetAdapterNames` function expects a `PULONG` (a pointer to an `unsigned long`) for its second parameter, whereas `UINT` maps to `unsigned int`.
This commit is contained in:
Ilia Shipitsin
2026-08-29 21:15:26 +02:00
parent a820ac7ddc
commit ba16ba3a10
+1 -1
View File
@@ -1406,7 +1406,7 @@ LIST *GetEthAdapterListInternal()
{
LIST *o;
LIST *ret;
UINT size;
ULONG size;
char *buf;
UINT i, j;
char *qos_tag = "(Microsoft's Packet Scheduler)"; // Allow to combine "FriendlyName" consisting of a NULL character and QOS tag.