Add a patch in order to fix it. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18600 Signed-off-by: Robert Marko <robimarko@gmail.com>
40 lines
1 KiB
Diff
40 lines
1 KiB
Diff
--- a/src/lane/load.c
|
|
+++ b/src/lane/load.c
|
|
@@ -498,8 +498,8 @@ load_vars(const char *file)
|
|
break;
|
|
case BOOLEAN:
|
|
Debug_unit(&load_unit, "Variable is boolean: %s",
|
|
- g_return.bool==BL_TRUE?"True":"False");
|
|
- set_var_bool(curr_unit, varname, g_return.bool);
|
|
+ g_return.boolean==BL_TRUE?"True":"False");
|
|
+ set_var_bool(curr_unit, varname, g_return.boolean);
|
|
break;
|
|
case INTEGER:
|
|
Debug_unit(&load_unit, "Variable is integer: %d", g_return.intti);
|
|
--- a/src/lane/load_lex.h
|
|
+++ b/src/lane/load_lex.h
|
|
@@ -24,7 +24,7 @@
|
|
#define END 0
|
|
|
|
typedef struct {
|
|
- Bool_t bool;
|
|
+ Bool_t boolean;
|
|
int intti;
|
|
AtmAddr_t *atmaddress;
|
|
LaneDestination_t *destaddr;
|
|
--- a/src/lane/load_lex.l
|
|
+++ b/src/lane/load_lex.l
|
|
@@ -44,11 +44,11 @@ H [0-9a-fA-F]
|
|
return ATMADDRESS;
|
|
}
|
|
True |
|
|
-true {g_return.bool = BL_TRUE;
|
|
+true {g_return.boolean = BL_TRUE;
|
|
return BOOLEAN;
|
|
}
|
|
False |
|
|
-false {g_return.bool = BL_FALSE;
|
|
+false {g_return.boolean = BL_FALSE;
|
|
return BOOLEAN;
|
|
}
|
|
\#.* {}
|