Add log.h to files that need it

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-12-15 17:53:17 +00:00
parent 0cebbc370a
commit acb81bc9a9
15 changed files with 15 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ from_x_rect(const xcb_rectangle_t *rect) {
/// Returning an array that needs to be freed
static inline rect_t *
from_x_rects(int nrects, const xcb_rectangle_t *rects) {
rect_t *ret = calloc(nrects, sizeof *ret);
rect_t *ret = ccalloc(nrects, rect_t);
for (int i = 0; i < nrects; i++)
ret[i] = from_x_rect(rects+i);
return ret;