[PATCH 1/2] libxext: Don't export extra symbols
Peter Hutterer
peter.hutterer at who-t.net
Mon Jun 22 16:59:42 PDT 2009
On Sat, Jun 06, 2009 at 05:22:12AM +1000, Paul TBBle Hampson wrote:
> 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
(forgot to reply to this email)
pushed as b2c2cbaca4bf7ae6d735a5d18a7732f3d73d77db a week ago. thanks for
the patch!
Cheers,
Peter
More information about the xorg-devel
mailing list