From 5a03fd26fbfedba4df8d1c149399dddcddb31611 Mon Sep 17 00:00:00 2001 From: Rob Swindell Date: Tue, 27 Dec 2022 21:43:34 -0800 Subject: [PATCH] Resolve win32 build Error C2440 with CALLBACK function decoration 'function': cannot convert from 'void (__cdecl *)(PVOID,BOOLEAN)' to 'WAITORTIMERCALLBACK' --- client/sub_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/sub_client.c b/client/sub_client.c index caad3f6f..ad0b3ee9 100644 --- a/client/sub_client.c +++ b/client/sub_client.c @@ -51,7 +51,7 @@ static HANDLE timeout_h = NULL; #endif #ifdef WIN32 -void timeout_cb(PVOID lpParameter, BOOLEAN TimerOrWaitFired) +void CALLBACK timeout_cb(PVOID lpParameter, BOOLEAN TimerOrWaitFired) { UNUSED(lpParameter); UNUSED(TimerOrWaitFired);