projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wireless: align some HE capabilities with the spec
[carl9170fw.git]
/
config
/
symbol.c
diff --git
a/config/symbol.c
b/config/symbol.c
index 3dc81397d0038495a4a9a11925990a42fedf46ce..fe38e6fd2c2a4555adfcd78a135e977c78aa4ac4 100644
(file)
--- a/
config/symbol.c
+++ b/
config/symbol.c
@@
-3,11
+3,11
@@
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
*/
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
*/
+#include <sys/types.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <regex.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <regex.h>
-#include <sys/utsname.h>
#include "lkc.h"
#include "lkc.h"
@@
-15,15
+15,21
@@
struct symbol symbol_yes = {
.name = "y",
.curr = { "y", yes },
.flags = SYMBOL_CONST|SYMBOL_VALID,
.name = "y",
.curr = { "y", yes },
.flags = SYMBOL_CONST|SYMBOL_VALID,
-}, symbol_mod = {
+};
+
+struct symbol symbol_mod = {
.name = "m",
.curr = { "m", mod },
.flags = SYMBOL_CONST|SYMBOL_VALID,
.name = "m",
.curr = { "m", mod },
.flags = SYMBOL_CONST|SYMBOL_VALID,
-}, symbol_no = {
+};
+
+struct symbol symbol_no = {
.name = "n",
.curr = { "n", no },
.flags = SYMBOL_CONST|SYMBOL_VALID,
.name = "n",
.curr = { "n", no },
.flags = SYMBOL_CONST|SYMBOL_VALID,
-}, symbol_empty = {
+};
+
+static struct symbol symbol_empty = {
.name = "",
.curr = { "", no },
.flags = SYMBOL_VALID,
.name = "",
.curr = { "", no },
.flags = SYMBOL_VALID,
@@
-31,7
+37,7
@@
struct symbol symbol_yes = {
struct symbol *sym_defconfig_list;
struct symbol *modules_sym;
struct symbol *sym_defconfig_list;
struct symbol *modules_sym;
-tristate modules_val;
+
static
tristate modules_val;
enum symbol_type sym_get_type(struct symbol *sym)
{
enum symbol_type sym_get_type(struct symbol *sym)
{
@@
-831,7
+837,7
@@
struct symbol *sym_lookup(const char *name, int flags)
memset(symbol, 0, sizeof(*symbol));
symbol->name = new_name;
symbol->type = S_UNKNOWN;
memset(symbol, 0, sizeof(*symbol));
symbol->name = new_name;
symbol->type = S_UNKNOWN;
- symbol->flags
|
= flags;
+ symbol->flags = flags;
symbol->next = symbol_hash[hash];
symbol_hash[hash] = symbol;
symbol->next = symbol_hash[hash];
symbol_hash[hash] = symbol;