[PATCH 1/2] libxext: Don't export extra symbols

Paul TBBle Hampson Paul.Hampson at Pobox.com
Fri Jun 5 12:22:12 PDT 2009


Turns the following functions static
	_xgeFindDisplay
	_xgeCheckExtInit
	_xgeEventToWire
---
 src/Xge.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/Xge.c b/src/Xge.c
index 6991553..7a583e5 100644
--- a/src/Xge.c
+++ b/src/Xge.c
@@ -68,9 +68,9 @@ typedef struct _XGEData {
 
 
 /* forward declarations */
-extern XExtDisplayInfo* _xgeFindDisplay(Display*);
+static XExtDisplayInfo* _xgeFindDisplay(Display*);
 static Bool _xgeWireToEvent(Display*, XEvent*, xEvent*);
-Status _xgeEventToWire(Display*, XEvent*, xEvent*);
+static Status _xgeEventToWire(Display*, XEvent*, xEvent*);
 static int _xgeDpyClose(Display*, XExtCodes*);
 static XGEVersionRec* _xgeGetExtensionVersion(Display*,
                                               _Xconst char*,
@@ -95,7 +95,7 @@ static XExtensionHooks xge_extension_hooks = {
 };
 
 
-XExtDisplayInfo *_xgeFindDisplay(Display *dpy)
+static XExtDisplayInfo *_xgeFindDisplay(Display *dpy)
 {
     XExtDisplayInfo *dpyinfo;
     if (!xge_info)
@@ -127,7 +127,7 @@ XExtDisplayInfo *_xgeFindDisplay(Display *dpy)
 /*
  * Check extension is set up and internal data fields are filled.
  */
-Bool
+static Bool
 _xgeCheckExtInit(Display* dpy, XExtDisplayInfo* info)
 {
     LockDisplay(dpy);
@@ -263,7 +263,7 @@ _xgeWireToEvent(Display* dpy, XEvent* re, xEvent *event)
 /*
  * xlib event to protocol conversion routine.
  */
-Status
+static Status
 _xgeEventToWire(Display* dpy, XEvent* re, xEvent* event)
 {
     int extension;
-- 
1.6.3.1


-- 
Paul "TBBle" Hampson, Paul.Hampson at Pobox.com

Shorter .sig for a more eco-friendly paperless office.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.x.org/archives/xorg-devel/attachments/20090606/73645ff1/attachment.pgp 


More information about the xorg-devel mailing list