summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2017-03-25 16:45:09 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2017-03-25 16:52:02 -0700
commita3b40ded1276afe8e9e426c39d721a9ccb989eb8 (patch)
tree1d5b2ca1802f0408647a74acde640dae1aefef6b
parent8128b3f414f494af1708df627851a8483aeb3160 (diff)
*: add some missing includes
-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