hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/scripts/kconfig/gconf.c
....@@ -1,9 +1,6 @@
1
-/* Hey EMACS -*- linux-c -*- */
1
+// SPDX-License-Identifier: GPL-2.0
22 /*
3
- *
43 * Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info>
5
- * Released under the terms of the GNU GPL v2.0.
6
- *
74 */
85
96 #ifdef HAVE_CONFIG_H
....@@ -12,7 +9,7 @@
129
1310 #include <stdlib.h>
1411 #include "lkc.h"
15
-#include "images.c"
12
+#include "images.h"
1613
1714 #include <glade/glade.h>
1815 #include <gtk/gtk.h>
....@@ -21,6 +18,7 @@
2118
2219 #include <stdio.h>
2320 #include <string.h>
21
+#include <strings.h>
2422 #include <unistd.h>
2523 #include <time.h>
2624
....@@ -78,8 +76,8 @@
7876 static void conf_changed(void);
7977
8078 /* Helping/Debugging Functions */
81
-
82
-const char *dbg_sym_flags(int val)
79
+#ifdef DEBUG
80
+static const char *dbg_sym_flags(int val)
8381 {
8482 static char buf[256];
8583
....@@ -108,9 +106,10 @@
108106
109107 return buf;
110108 }
109
+#endif
111110
112
-void replace_button_icon(GladeXML * xml, GdkDrawable * window,
113
- GtkStyle * style, gchar * btn_name, gchar ** xpm)
111
+static void replace_button_icon(GladeXML *xml, GdkDrawable *window,
112
+ GtkStyle *style, gchar *btn_name, gchar **xpm)
114113 {
115114 GdkPixmap *pixmap;
116115 GdkBitmap *mask;
....@@ -128,7 +127,7 @@
128127 }
129128
130129 /* Main Window Initialization */
131
-void init_main_window(const gchar * glade_file)
130
+static void init_main_window(const gchar *glade_file)
132131 {
133132 GladeXML *xml;
134133 GtkWidget *widget;
....@@ -190,7 +189,7 @@
190189 gtk_widget_show(main_wnd);
191190 }
192191
193
-void init_tree_model(void)
192
+static void init_tree_model(void)
194193 {
195194 gint i;
196195
....@@ -220,7 +219,7 @@
220219 model1 = GTK_TREE_MODEL(tree1);
221220 }
222221
223
-void init_left_tree(void)
222
+static void init_left_tree(void)
224223 {
225224 GtkTreeView *view = GTK_TREE_VIEW(tree1_w);
226225 GtkCellRenderer *renderer;
....@@ -262,7 +261,7 @@
262261 const gchar * path_string,
263262 const gchar * new_text, gpointer user_data);
264263
265
-void init_right_tree(void)
264
+static void init_right_tree(void)
266265 {
267266 GtkTreeView *view = GTK_TREE_VIEW(tree2_w);
268267 GtkCellRenderer *renderer;
....@@ -640,7 +639,7 @@
640639 void on_introduction1_activate(GtkMenuItem * menuitem, gpointer user_data)
641640 {
642641 GtkWidget *dialog;
643
- const gchar *intro_text =
642
+ const gchar *intro_text =
644643 "Welcome to gkc, the GTK+ graphical configuration tool\n"
645644 "For each option, a blank box indicates the feature is disabled, a\n"
646645 "check indicates it is enabled, and a dot indicates that it is to\n"
....@@ -1212,8 +1211,8 @@
12121211 /*
12131212 * Find a menu in the GtkTree starting at parent.
12141213 */
1215
-GtkTreeIter *gtktree_iter_find_node(GtkTreeIter * parent,
1216
- struct menu *tofind)
1214
+static GtkTreeIter *gtktree_iter_find_node(GtkTreeIter *parent,
1215
+ struct menu *tofind)
12171216 {
12181217 GtkTreeIter iter;
12191218 GtkTreeIter *child = &iter;
....@@ -1424,7 +1423,7 @@
14241423 tree = tree2;
14251424 }
14261425
1427
-void fixup_rootmenu(struct menu *menu)
1426
+static void fixup_rootmenu(struct menu *menu)
14281427 {
14291428 struct menu *child;
14301429 static int menu_cnt = 0;