From 281e12426f4f79e6a7a620ff8a523bf2128a37b0 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 20 May 2025 19:39:04 +0200 Subject: [PATCH] xfree86: xf86.h: make xf86EnableGeneralHandler() static Only used inside xf86Events.c Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 1 - hw/xfree86/common/xf86Events.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 5f8e8561c..a0a042f12 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -178,7 +178,6 @@ extern _X_EXPORT void SetTimeSinceLastInputEvent(void); extern _X_EXPORT void *xf86AddGeneralHandler(int fd, InputHandlerProc proc, void *data); extern _X_EXPORT int xf86RemoveGeneralHandler(void *handler); -extern _X_EXPORT void xf86EnableGeneralHandler(void *handler); extern _X_EXPORT InputHandlerProc xf86SetConsoleHandler(InputHandlerProc handler, void *data); extern _X_EXPORT void xf86ProcessActionEvent(ActionEvent action, void *arg); diff --git a/hw/xfree86/common/xf86Events.c b/hw/xfree86/common/xf86Events.c index e8d4e4e19..6c7cb1971 100644 --- a/hw/xfree86/common/xf86Events.c +++ b/hw/xfree86/common/xf86Events.c @@ -344,6 +344,7 @@ xf86UpdateHasVTProperty(Bool hasVT) static void xf86DisableInputHandler(void *handler); static void xf86EnableInputHandler(void *handler); static void xf86DisableGeneralHandler(void *handler); +static void xf86EnableGeneralHandler(void *handler); void xf86VTLeave(void) @@ -664,8 +665,7 @@ static void xf86EnableInputHandler(void *handler) SetNotifyFd(ih->fd, xf86InputHandlerNotify, X_NOTIFY_READ, ih); } -void -xf86EnableGeneralHandler(void *handler) +static void xf86EnableGeneralHandler(void *handler) { IHPtr ih;