freerdp: Fix incompatible function pointer type

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2023-01-17 20:10:42 -08:00
parent a92489d4b4
commit 68fe58173d
2 changed files with 33 additions and 0 deletions
@@ -0,0 +1,32 @@
From 9c785ca0535d9c24e6699ee1243b427c1407acb5 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 17 Jan 2023 19:31:17 -0800
Subject: [PATCH] Fix incompatible function pointer types
clang 16+ is flagging the function pointer prototype mismatches,
therefore fix it.
Fixes Issue #8487
Upstream-Status: Submitted [https://github.com/FreeRDP/FreeRDP/pull/8622]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
client/X11/xf_disp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/X11/xf_disp.c b/client/X11/xf_disp.c
index 32ddb626c..ef0cb93ff 100644
--- a/client/X11/xf_disp.c
+++ b/client/X11/xf_disp.c
@@ -248,7 +248,7 @@ static void xf_disp_OnTimer(void* context, TimerEventArgs* e)
xf_disp_sendResize(xfDisp);
}
-static void xf_disp_OnWindowStateChange(void* context, const WindowStateChangeEventArgs* e)
+static void xf_disp_OnWindowStateChange(void* context, WindowStateChangeEventArgs* e)
{
xfContext* xfc;
xfDispContext* xfDisp;
--
2.39.1
@@ -16,6 +16,7 @@ PKGV = "${GITPKGVTAG}"
SRCREV = "fa8e1b1c765a4466030ac52240f052c0b440a4d1"
SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;branch=stable-2.0;protocol=https \
file://winpr-makecert-Build-with-install-RPATH.patch \
file://0001-Fix-incompatible-function-pointer-types.patch \
"
S = "${WORKDIR}/git"