From 2c71df1d89b607310da73176f11c74bb5ddd4acb Mon Sep 17 00:00:00 2001 From: "andrew@ugh.net.au" Date: Sun, 11 Aug 2013 17:00:00 -0400 Subject: [PATCH] Return values from functions that have a return type (Bug 5872) --- 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); -- 2.39.2