Return values from functions that have a return type (Bug 5872)
authorandrew@ugh.net.au <andrew@ugh.net.au>
Sun, 11 Aug 2013 21:00:00 +0000 (17:00 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 11 Aug 2013 21:00:00 +0000 (17:00 -0400)
src/appearance.c
src/main.c

index f130311..4fb3f0c 100644 (file)
@@ -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, ' '))) {
index a576253..7e4a4e7 100644 (file)
@@ -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);