diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util.h | 3 | ||||
-rw-r--r-- | src/vwm.c | 1 | ||||
-rw-r--r-- | src/window.c | 1 | ||||
-rw-r--r-- | src/xevent.c | 2 |
4 files changed, 5 insertions, 2 deletions
@@ -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)) @@ -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); } } } |