(!1359) dix: make CopyGrab() static

This function is only called once in the same source file, no external callers
at all. So, it doesn't need to be visible outside that file, and we can allow
the compiler to do whatever fancy optimizations it might wanna do.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-09-04 13:02:03 +02:00
parent cd0b9ff4e9
commit 4f337a2760
2 changed files with 3 additions and 2 deletions

View File

@ -193,6 +193,8 @@ UngrabAllDevices(Bool kill_client)
ErrorF("End list of ungrabbed devices\n");
}
static Bool CopyGrab(GrabPtr dst, const GrabPtr src);
GrabPtr
AllocGrab(const GrabPtr src)
{
@ -269,7 +271,7 @@ FreeGrab(GrabPtr pGrab)
free(pGrab);
}
Bool
static Bool
CopyGrab(GrabPtr dst, const GrabPtr src)
{
Mask *mdetails_mask = NULL;

View File

@ -33,7 +33,6 @@ extern void UngrabAllDevices(Bool kill_client);
extern GrabPtr AllocGrab(const GrabPtr src);
extern void FreeGrab(GrabPtr grab);
extern Bool CopyGrab(GrabPtr dst, const GrabPtr src);
extern GrabPtr CreateGrab(int /* client */ ,
DeviceIntPtr /* device */ ,