summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorokan <okan>2009-06-26 12:21:58 +0000
committerokan <okan>2009-06-26 12:21:58 +0000
commitf44862be9c4d3332d3f9ee9760e7014814eaeeb3 (patch)
treee4f8b3c240f5bfe6b496f10fd61cec1cc6b98954 /client.c
parentb13d592c572bde4a2b2039e7ef30e501ac97a21a (diff)
downloadcwm-f44862be9c4d3332d3f9ee9760e7014814eaeeb3.tar.gz
cwm-f44862be9c4d3332d3f9ee9760e7014814eaeeb3.tar.xz
cwm-f44862be9c4d3332d3f9ee9760e7014814eaeeb3.zip
static local functions and data; almost identical diff from Thomas Pfaff
ok oga@
Diffstat (limited to 'client.c')
-rw-r--r--client.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/client.c b/client.c
index 6de3758..087a991 100644
--- a/client.c
+++ b/client.c
@@ -21,7 +21,13 @@
 #include "headers.h"
 #include "calmwm.h"
 
-static int		 client_inbound(struct client_ctx *, int, int);
+static struct client_ctx	*client_mrunext(struct client_ctx *);
+static struct client_ctx	*client_mruprev(struct client_ctx *);
+static void			 client_placecalc(struct client_ctx *);
+static void			 client_update(struct client_ctx *);
+static void			 client_gethints(struct client_ctx *);
+static void			 client_freehints(struct client_ctx *);
+static int			 client_inbound(struct client_ctx *, int, int);
 
 static char		 emptystring[] = "";
 struct client_ctx	*_curcc = NULL;
@@ -407,7 +413,7 @@ client_draw_border(struct client_ctx *cc)
 	XSetWindowBorder(X_Dpy, cc->win, pixel);
 }
 
-void
+static void
 client_update(struct client_ctx *cc)
 {
 	Atom	*p; 
@@ -522,7 +528,7 @@ client_cycle(int reverse)
 	return (newcc);
 }
 
-struct client_ctx *
+static struct client_ctx *
 client_mrunext(struct client_ctx *cc)
 {
 	struct screen_ctx	*sc = CCTOSC(cc);
@@ -532,7 +538,7 @@ client_mrunext(struct client_ctx *cc)
 	    ccc : TAILQ_FIRST(&sc->mruq));
 }
 
-struct client_ctx *
+static struct client_ctx *
 client_mruprev(struct client_ctx *cc)
 {
 	struct screen_ctx	*sc = CCTOSC(cc);
@@ -542,7 +548,7 @@ client_mruprev(struct client_ctx *cc)
 	    ccc : TAILQ_LAST(&sc->mruq, cycle_entry_q));
 }
 
-void
+static void
 client_placecalc(struct client_ctx *cc)
 {
 	struct screen_ctx	*sc = CCTOSC(cc);
@@ -629,7 +635,7 @@ client_mtf(struct client_ctx *cc)
 	TAILQ_INSERT_HEAD(&sc->mruq, cc, mru_entry);
 }
 
-void
+static void
 client_gethints(struct client_ctx *cc)
 {
 	XClassHint		 xch;
@@ -675,7 +681,7 @@ client_gethints(struct client_ctx *cc)
 	}
 }
 
-void
+static void
 client_freehints(struct client_ctx *cc)
 {
 	if (cc->app_name != NULL)