fix compiler warnings

This commit is contained in:
Sascha Kruse 2014-03-08 12:09:18 +01:00
parent 6715f74a47
commit 8bb8f6269f

4
x.c
View File

@ -269,9 +269,9 @@ static dimension_t calculate_dimensions(GSList *layouts)
return dim; return dim;
} }
static cairo_t *get_icon_surface(char *icon_path) static cairo_surface_t *get_icon_surface(char *icon_path)
{ {
cairo_t *icon_surface = NULL; cairo_surface_t *icon_surface = NULL;
if (strlen(icon_path) > 0 && settings.icon_position != icons_off) { if (strlen(icon_path) > 0 && settings.icon_position != icons_off) {
/* absolute path? */ /* absolute path? */
if (icon_path[0] == '/' || icon_path[0] == '~') { if (icon_path[0] == '/' || icon_path[0] == '~') {