summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util.h3
-rw-r--r--src/vwm.c1
-rw-r--r--src/window.c1
-rw-r--r--src/xevent.c2
4 files changed, 5 insertions, 2 deletions
diff --git a/src/util.h b/src/util.h
index 4a3da06..72a9a5d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -1,8 +1,9 @@
#ifndef _UTIL_H
#define _UTIL_H
-#include <stdio.h>
#include <errno.h>
+#include <stdio.h>
+#include <string.h>
#define VWM_ERROR(_fmt, _args...) fprintf(stderr, "%s:%i\t%s() "_fmt"\n", __FILE__, __LINE__, __FUNCTION__, ##_args)
#define VWM_PERROR(_fmt, _args...) fprintf(stderr, "%s:%i\t%s() "_fmt"; %s\n", __FILE__, __LINE__, __FUNCTION__, ##_args, strerror(errno))
diff --git a/src/vwm.c b/src/vwm.c
index 98ade29..8c3a803 100644
--- a/src/vwm.c
+++ b/src/vwm.c
@@ -36,6 +36,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/resource.h>
+#include <unistd.h>
#include <poll.h>
#include "charts.h"
diff --git a/src/window.c b/src/window.c
index 92da503..b10526e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -21,6 +21,7 @@
#include <assert.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <string.h>
#include "desktop.h"
#include "list.h"
diff --git a/src/xevent.c b/src/xevent.c
index 0dc31a9..2af3a54 100644
--- a/src/xevent.c
+++ b/src/xevent.c
@@ -210,7 +210,7 @@ void vwm_xevent_handle_map_request(vwm_t *vwm, XMapRequestEvent *ev)
} else {
/* this is unexpected */
XMapWindow(VWM_XDISPLAY(vwm), ev->window);
- VWM_BUG("handled map request of unmanaged window vwin=%p xwin=%p id=%u", vwin, xwin, ev->window);
+ VWM_BUG("handled map request of unmanaged window vwin=%p xwin=%p id=%u", vwin, xwin, (unsigned int)ev->window);
}
}
}
© All Rights Reserved