From: andrew@ugh.net.au Date: Sun, 11 Aug 2013 21:00:00 +0000 (-0400) Subject: Return values from functions that have a return type (Bug 5872) X-Git-Tag: release-2.0.4~31 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=2c71df1d89b607310da73176f11c74bb5ddd4acb;p=dana%2Fobconf.git Return values from functions that have a return type (Bug 5872) --- 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);