From 7530741414ce3ae5b029d907130080ac3379030d Mon Sep 17 00:00:00 2001 From: Ilia Shipitsin Date: Sat, 29 Aug 2026 21:27:39 +0200 Subject: [PATCH] Fix incompatible pointer type warning in IPsecWin7UpdateHostIPAddressList Changed the type of `retsize` from `UINT` to `DWORD` in `Proto_Win7.c` to resolve a compiler warning (`-Wincompatible-pointer-types`). The Windows API function `WriteFile` expects an `LPDWORD` (a pointer to an `unsigned long`) for its `lpNumberOfBytesWritten` parameter, whereas `UINT` maps to `unsigned int`. --- src/Cedar/Proto_Win7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Proto_Win7.c b/src/Cedar/Proto_Win7.c index 98397503..faad5175 100644 --- a/src/Cedar/Proto_Win7.c +++ b/src/Cedar/Proto_Win7.c @@ -127,7 +127,7 @@ void IPsecWin7UpdateHostIPAddressList(IPSEC_WIN7 *w) LIST *o; UINT i; BUF *buf; - UINT retsize; + DWORD retsize; // Validate arguments if (w == NULL) {