From a3b40ded1276afe8e9e426c39d721a9ccb989eb8 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 25 Mar 2017 16:45:09 -0700 Subject: *: add some missing includes --- src/util.h | 3 ++- src/vwm.c | 1 + src/window.c | 1 + src/xevent.c | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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 #include +#include +#include #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 #include #include +#include #include #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 #include #include +#include #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); } } } -- cgit v1.2.3