mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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>
(cherry picked from commit 93856053b7)
This commit is contained in:
committed by
Alan Coopersmith
parent
1c3d77eda5
commit
8cd50a21e7
@@ -188,6 +188,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)
|
||||
{
|
||||
@@ -264,7 +266,7 @@ FreeGrab(GrabPtr pGrab)
|
||||
free(pGrab);
|
||||
}
|
||||
|
||||
Bool
|
||||
static Bool
|
||||
CopyGrab(GrabPtr dst, const GrabPtr src)
|
||||
{
|
||||
Mask *mdetails_mask = NULL;
|
||||
|
||||
@@ -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 */ ,
|
||||
|
||||
Reference in New Issue
Block a user