void removeicon(Window win, int unmap)
{
IList *it, *last = NULL;
- void *old;
+ int (*old)(Display *, XErrorEvent *);
for (it = list; it; last = it, it = it->next)
if (it->win == win) {
/* try me */
XGetWindowProperty(display, win, state, 0, 1,
- False, state, &ret_type, &ret_format,
- &ret_items, &ret_bytesleft,
- (unsigned char**) &prop_return);
+ False, state, &ret_type, &ret_format,
+ &ret_items, &ret_bytesleft,
+ (unsigned char**) &prop_return);
if (ret_type == None || ret_items < 1)
return None;
return win; /* found it! */