Xext: Fix compiler warnings

Make GEClientGone static and include registry.h, to fix the following
warnings:
geext.c:225: warning: no previous prototype for 'GEClientGone'
geext.c: In function 'GEExtensionInit':
geext.c:280: warning: implicit declaration of function 'RegisterResourceName'
geext.c:280: warning: nested extern declaration of 'RegisterResourceName'
This commit is contained in:
Julien Cristau 2008-10-26 11:05:13 +01:00
parent 24e863b0eb
commit f2bda61c03

View File

@ -28,6 +28,7 @@
#endif #endif
#include "windowstr.h" #include "windowstr.h"
#include <X11/extensions/ge.h> #include <X11/extensions/ge.h>
#include "registry.h"
#include "geint.h" #include "geint.h"
#include "geext.h" #include "geext.h"
@ -220,7 +221,7 @@ SGEGenericEvent(xEvent* from, xEvent* to)
* Resource callback, invoked when the client disconnects and the associated * Resource callback, invoked when the client disconnects and the associated
* GE masks must be destroyed. * GE masks must be destroyed.
*/ */
int static int
GEClientGone(WindowPtr pWin, XID id) GEClientGone(WindowPtr pWin, XID id)
{ {
GenericClientMasksPtr gclmask; GenericClientMasksPtr gclmask;