audioc: Fix memory leak in configfile_exists().
[paraslash.git] / gui_theme.c
index 5976a0e73f1072d963ca5c325a8f2299b5b25fff..803e2ec0fb10ca7f9a2cfdaed15206378e36b06d 100644 (file)
@@ -1,10 +1,9 @@
 /*
- * Copyright (C) 2005-2011 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
 
-#include <stdbool.h>
 #include "para.h"
 #include "gui.h"
 #include <curses.h>
@@ -362,7 +361,7 @@ struct theme_description {
        void (*init)(struct gui_theme *t);
 };
 
-struct theme_description themes[] = {
+static struct theme_description themes[] = {
        {
                .name = "colorful blackness",
                .init = init_theme_colorful_blackness,
@@ -377,7 +376,7 @@ struct theme_description themes[] = {
 
 static int current_theme_num;
 
-void set_theme(int num, struct gui_theme *t)
+static void set_theme(int num, struct gui_theme *t)
 {
        int i;
        FOR_EACH_STATUS_ITEM(i)
@@ -412,4 +411,3 @@ void next_theme(struct gui_theme *t)
 {
        return set_theme(--current_theme_num, t);
 }
-