XFree() doesn't need casting

This commit is contained in:
cebix
2001-01-06 22:15:35 +00:00
parent 6b92e785c7
commit c7d71ae1ab

View File

@@ -334,7 +334,7 @@ static void set_window_name(Window w, int name)
hints->res_name = "BasiliskII"; hints->res_name = "BasiliskII";
hints->res_class = "BasiliskII"; hints->res_class = "BasiliskII";
XSetClassHint(x_display, w, hints); XSetClassHint(x_display, w, hints);
XFree((char *)hints); XFree(hints);
} }
} }
@@ -347,7 +347,7 @@ static void set_window_focus(Window w)
hints->initial_state = NormalState; hints->initial_state = NormalState;
hints->flags = InputHint | StateHint; hints->flags = InputHint | StateHint;
XSetWMHints(x_display, w, hints); XSetWMHints(x_display, w, hints);
XFree((char *)hints); XFree(hints);
} }
} }
@@ -428,7 +428,7 @@ static bool init_window(int width, int height)
hints->max_height = height; hints->max_height = height;
hints->flags = PMinSize | PMaxSize; hints->flags = PMinSize | PMaxSize;
XSetWMNormalHints(x_display, the_win, hints); XSetWMNormalHints(x_display, the_win, hints);
XFree((char *)hints); XFree(hints);
} }
} }