changeset 35673:2b7f93ef711d

Make functions static that only have file scope.
author ib
date Thu, 17 Jan 2013 16:51:50 +0000
parents 144d3a71db7d
children 5c2f331d306a
files gui/wm/ws.c gui/wm/ws.h
diffstat 2 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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)))