aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2014-01-03 15:29:06 +0000
committerokan2014-01-03 15:29:06 +0000
commit7c3d7c7e009aba5952f235258aecebf4a42fcd3a (patch)
tree7970da959e352c005af1dbe5fd3562f4e58088f5 /conf.c
parentfa1e0bfcb82d655544296d192c8df094a7895039 (diff)
downloadcwm-7c3d7c7e009aba5952f235258aecebf4a42fcd3a.tar.gz
use consistent types
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/conf.c b/conf.c
index 05432d3..cf5796f 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.154 2014/01/02 21:30:20 okan Exp $
+ * $OpenBSD: conf.c,v 1.155 2014/01/03 15:29:06 okan Exp $
*/
#include <sys/param.h>
@@ -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]);