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:
parent
bd8d3455fb
commit
93856053b7
|
@ -191,6 +191,8 @@ UngrabAllDevices(Bool kill_client)
|
||||||
ErrorF("End list of ungrabbed devices\n");
|
ErrorF("End list of ungrabbed devices\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static Bool CopyGrab(GrabPtr dst, const GrabPtr src);
|
||||||
|
|
||||||
GrabPtr
|
GrabPtr
|
||||||
AllocGrab(const GrabPtr src)
|
AllocGrab(const GrabPtr src)
|
||||||
{
|
{
|
||||||
|
@ -267,7 +269,7 @@ FreeGrab(GrabPtr pGrab)
|
||||||
free(pGrab);
|
free(pGrab);
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool
|
static Bool
|
||||||
CopyGrab(GrabPtr dst, const GrabPtr src)
|
CopyGrab(GrabPtr dst, const GrabPtr src)
|
||||||
{
|
{
|
||||||
Mask *mdetails_mask = NULL;
|
Mask *mdetails_mask = NULL;
|
||||||
|
|
|
@ -33,7 +33,6 @@ extern void UngrabAllDevices(Bool kill_client);
|
||||||
|
|
||||||
extern GrabPtr AllocGrab(const GrabPtr src);
|
extern GrabPtr AllocGrab(const GrabPtr src);
|
||||||
extern void FreeGrab(GrabPtr grab);
|
extern void FreeGrab(GrabPtr grab);
|
||||||
extern Bool CopyGrab(GrabPtr dst, const GrabPtr src);
|
|
||||||
|
|
||||||
extern GrabPtr CreateGrab(int /* client */ ,
|
extern GrabPtr CreateGrab(int /* client */ ,
|
||||||
DeviceIntPtr /* device */ ,
|
DeviceIntPtr /* device */ ,
|
||||||
|
|
Loading…
Reference in New Issue