# HG changeset patch # User ib # Date 1358441510 0 # Node ID 2b7f93ef711d571ea88e720cf09104fecaa6f215 # Parent 144d3a71db7d6d309f634b78b0397c2f6f8e20b3 Make functions static that only have file scope. diff -r 144d3a71db7d -r 2b7f93ef711d gui/wm/ws.c --- a/gui/wm/ws.c Thu Jan 17 16:49:26 2013 +0000 +++ b/gui/wm/ws.c Thu Jan 17 16:51:50 2013 +0000 @@ -165,7 +165,7 @@ } } -int wsGetDepthOnScreen(void) +static int wsGetDepthOnScreen(void) { int depth; XImage *mXImage; @@ -209,7 +209,7 @@ return wsDepthOnScreen; } -int wsGetOutMask(void) +static int wsGetOutMask(void) { if ((wsDepthOnScreen == 32) && (wsRedMask == 0xff0000) && (wsGreenMask == 0x00ff00) && (wsBlueMask == 0x0000ff)) return wsRGB32; diff -r 144d3a71db7d -r 2b7f93ef711d gui/wm/ws.h --- a/gui/wm/ws.h Thu Jan 17 16:49:26 2013 +0000 +++ b/gui/wm/ws.h Thu Jan 17 16:51:50 2013 +0000 @@ -178,8 +178,6 @@ void wsXInit(Display *display); void wsSetErrorHandler(void); -int wsGetDepthOnScreen(void); - void wsAutohideCursor(void); void wsEvents(XEvent *event); void wsHandleEvents(void); @@ -215,7 +213,6 @@ void wsPutImage(wsWindow *win); void wsResizeImage(wsWindow *win, int Width, int Height); void wsDestroyImage(wsWindow *win); -int wsGetOutMask(void); #define wgIsRect(X, Y, tX, tY, bX, bY) (((X) > (tX)) && ((Y) > (tY)) && ((X) < (bX)) && ((Y) < (bY)))