diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-25 16:45:09 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-25 16:52:02 -0700 |
commit | a3b40ded1276afe8e9e426c39d721a9ccb989eb8 (patch) | |
tree | 1d5b2ca1802f0408647a74acde640dae1aefef6b /src | |
parent | 8128b3f414f494af1708df627851a8483aeb3160 (diff) |
*: add some missing includes
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); } } } |