summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authorokan <okan>2014-01-03 15:29:06 +0000
committerokan <okan>2014-01-03 15:29:06 +0000
commit43ccf4eae0f0f5c50495834e29f93671468a7cfe (patch)
treed6f6f2f0b1146030cf06f1fe9d77d64a555ecb0c /conf.c
parent08342471c86ca88dbfe71fffa55697f92378ff76 (diff)
downloadcwm-43ccf4eae0f0f5c50495834e29f93671468a7cfe.tar.gz
cwm-43ccf4eae0f0f5c50495834e29f93671468a7cfe.tar.xz
cwm-43ccf4eae0f0f5c50495834e29f93671468a7cfe.zip
use consistent types
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/conf.c b/conf.c
index 606d088..f9d0f72 100644
--- a/conf.c
+++ b/conf.c
@@ -31,7 +31,7 @@
 
 #include "calmwm.h"
 
-static const char	*conf_bind_getmask(const char *, u_int *);
+static const char	*conf_bind_getmask(const char *, unsigned int *);
 static void	 	 conf_unbind_kbd(struct conf *, struct keybinding *);
 static void	 	 conf_unbind_mouse(struct conf *, struct mousebinding *);
 
@@ -100,7 +100,7 @@ static char *color_binds[] = {
 void
 conf_screen(struct screen_ctx *sc)
 {
-	u_int		 i;
+	unsigned int	 i;
 	XftColor	 xc;
 
 	sc->gap = Conf.gap;
@@ -224,7 +224,7 @@ mouse_binds[] = {
 void
 conf_init(struct conf *c)
 {
-	u_int	i;
+	unsigned int	i;
 
 	(void)memset(c, 0, sizeof(*c));
 
@@ -454,11 +454,11 @@ static struct {
 };
 
 static const char *
-conf_bind_getmask(const char *name, u_int *mask)
+conf_bind_getmask(const char *name, unsigned int *mask)
 {
 	char		*dash;
 	const char	*ch;
-	u_int	 	 i;
+	unsigned int 	 i;
 
 	*mask = 0;
 	if ((dash = strchr(name, '-')) == NULL)
@@ -477,7 +477,7 @@ conf_bind_kbd(struct conf *c, char *name, char *binding)
 {
 	struct keybinding	*current_binding;
 	const char		*substring;
-	u_int			 i, mask;
+	unsigned int			 i, mask;
 
 	current_binding = xcalloc(1, sizeof(*current_binding));
 	substring = conf_bind_getmask(name, &mask);
@@ -564,7 +564,7 @@ conf_bind_mouse(struct conf *c, char *name, char *binding)
 {
 	struct mousebinding	*current_binding;
 	const char		*errstr, *substring;
-	u_int			 button, i, mask;
+	unsigned int		 button, i, mask;
 
 	current_binding = xcalloc(1, sizeof(*current_binding));
 	substring = conf_bind_getmask(name, &mask);
@@ -634,7 +634,7 @@ static int cursor_binds[] = {
 void
 conf_cursor(struct conf *c)
 {
-	u_int	 i;
+	unsigned int	 i;
 
 	for (i = 0; i < nitems(cursor_binds); i++)
 		c->cursor[i] = XCreateFontCursor(X_Dpy, cursor_binds[i]);