make multiple config instead of one implicit global
This commit is contained in:
@@ -715,7 +715,7 @@ int is_m2ap_MCE_enabled(void)
|
||||
};
|
||||
|
||||
/* TODO: do it per module - we check only first MCE */
|
||||
config_get(p, sizeof(p)/sizeof(paramdef_t), "MCEs.[0]");
|
||||
config_get(config_get_if(), p, sizeofArray(p), "MCEs.[0]");
|
||||
if (enable_m2 != NULL && strcmp(enable_m2, "yes") == 0)
|
||||
enabled = 1;
|
||||
|
||||
|
||||
@@ -706,7 +706,7 @@ int is_m2ap_eNB_enabled(void)
|
||||
};
|
||||
|
||||
/* TODO: do it per module - we check only first eNB */
|
||||
config_get(p, sizeof(p)/sizeof(paramdef_t), "eNBs.[0]");
|
||||
config_get(config_get_if(), p, sizeofArray(p), "eNBs.[0]");
|
||||
if (enable_m2 != NULL && strcmp(enable_m2, "yes") == 0)
|
||||
enabled = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user