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:
@@ -1406,7 +1406,7 @@ LIST *GetEthAdapterListInternal()
|
|||||||
{
|
{
|
||||||
LIST *o;
|
LIST *o;
|
||||||
LIST *ret;
|
LIST *ret;
|
||||||
UINT size;
|
ULONG size;
|
||||||
char *buf;
|
char *buf;
|
||||||
UINT i, j;
|
UINT i, j;
|
||||||
char *qos_tag = "(Microsoft's Packet Scheduler)"; // Allow to combine "FriendlyName" consisting of a NULL character and QOS tag.
|
char *qos_tag = "(Microsoft's Packet Scheduler)"; // Allow to combine "FriendlyName" consisting of a NULL character and QOS tag.
|
||||||
|
|||||||
Reference in New Issue
Block a user