From 60fc2bb1f003043ae3628ae0097bf1b62bbae91e Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Fri, 30 Dec 2011 21:46:26 +0400 Subject: [PATCH] Fix build with clang. --- src/appearance.c | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/appearance.c b/src/appearance.c index f130311..4fb3f0c 100644 --- a/src/appearance.c +++ b/src/appearance.c @@ -287,7 +287,7 @@ static RrFont *write_font(GtkFontButton *w, const gchar *place) RrFontWeight weight = RR_FONTWEIGHT_NORMAL; RrFontSlant slant = RR_FONTSLANT_NORMAL; - if (mapping) return; + if (mapping) return NULL; font = g_strdup(gtk_font_button_get_font_name(w)); while ((c = strrchr(font, ' '))) { diff --git a/src/main.c b/src/main.c index a576253..7e4a4e7 100644 --- a/src/main.c +++ b/src/main.c @@ -204,7 +204,7 @@ int main(int argc, char **argv) if (obc_theme_archive) { archive_create(obc_theme_archive); - return; + return 0; } p = g_build_filename(GLADEDIR, "obconf.glade", NULL); -- 1.7.6