aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-04-30 22:04:50 +0200
committerHarald Welte <laforge@gnumonks.org>2016-05-01 15:34:08 +0200
commit5b3fd465d16547f1175b211dd5366123f260fedb (patch)
tree391141cb40285ca7e1136e816c7b2f1c587056df
parent0991c684d342c292e8e5b0fb42f93fc615643580 (diff)
Fix parsing of auto-generated config file
When starting with empty config file, saving it by 'write file', and then re-starting osmo-cscn, it would complain: Error occurred during reading below line: long name Osmocom Circuit-Switched Core Network The problem is that the vty parser is configured to expect a single token and not a list of tokens here, but we initialize the default value with multiple words (which are treated as separate token).
-rw-r--r--openbsc/src/osmo-cscn/cscn_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-cscn/cscn_main.c b/openbsc/src/osmo-cscn/cscn_main.c
index a3787aa8c..dd1fc36f3 100644
--- a/openbsc/src/osmo-cscn/cscn_main.c
+++ b/openbsc/src/osmo-cscn/cscn_main.c
@@ -240,7 +240,7 @@ struct gsm_network *cscn_network_init(void *ctx,
if (!net)
return NULL;
- net->name_long = talloc_strdup(net, "Osmocom Circuit-Switched Core Network");
+ net->name_long = talloc_strdup(net, "OsmoCSCN");
net->name_short = talloc_strdup(net, "OsmoCSCN");
return net;