X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_list.c;h=129540bc4c38452831eea519a875074ad9a031ab;hb=c3cfa04b09ff042fed731b17dac3e40de1a10187;hp=9854ead6344ca64ce6e0e925de2eb2764753d550;hpb=8ab4dcde9db8175ef0093123bd04c72471e205ff;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_list.c b/src/xcb_list.c index 9854ead..129540b 100644 --- a/src/xcb_list.c +++ b/src/xcb_list.c @@ -25,6 +25,10 @@ /* A generic implementation of a list of void-pointers. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include "xcb.h" @@ -43,7 +47,7 @@ struct _xcb_map { /* Private interface */ -_xcb_map *_xcb_map_new() +_xcb_map *_xcb_map_new(void) { _xcb_map *list; list = malloc(sizeof(_xcb_map)); @@ -54,7 +58,7 @@ _xcb_map *_xcb_map_new() return list; } -void _xcb_map_delete(_xcb_map *list, XCBListFreeFunc do_free) +void _xcb_map_delete(_xcb_map *list, xcb_list_free_func_t do_free) { if(!list) return;