#define RBNULL 0
/* If highest bit in node_count is set, the node is red. */
-#define RED_MASK (1 << (SIZEOF_INT*CHAR_BIT-1))
+#define RED_MASK (1U << (SIZEOF_INT*CHAR_BIT-1))
#define IS_NODE_BLACK(node) \
(((node).node_count & RED_MASK) == 0)
}
/* get our init func */
- init = get_symbol(path, handle, t_strconcat(name, "_init", NULL));
+ init = (void (*)()) get_symbol(path, handle,
+ t_strconcat(name, "_init", NULL));
deinit = init == NULL ? NULL :
- get_symbol(path, handle, t_strconcat(name, "_deinit", NULL));
+ (void (*)()) get_symbol(path, handle,
+ t_strconcat(name, "_deinit", NULL));
if (init == NULL || deinit == NULL) {
(void)dlclose(handle);