Add log.h to files that need it
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user