diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-12-18 18:57:41 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-12-21 12:38:47 +0000 |
commit | b361ea7037a306621a0308a35c700dc1d76b7f11 (patch) | |
tree | 2512d10b3087af2ce1478e1d5991ef7513f52531 /src/libmsc | |
parent | b12b6cb006be94d610cabc1a3bb5fe39a76140e1 (diff) |
use vty->type instead of local variable
We can check if we're parsing the config file by checking
whether vty->type equals VTY_FILE. This avoids the use of
an extra local variable to track the parsing state.
Change-Id: I85161575e025f7c389832427a434bd8e2d6ecc75
Fixes: 1051c4208834c22d344dd92d25addfd8e5d95993
Related: OS#3355
Diffstat (limited to 'src/libmsc')
-rw-r--r-- | src/libmsc/msc_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmsc/msc_vty.c b/src/libmsc/msc_vty.c index c5d28322b..7745e5d99 100644 --- a/src/libmsc/msc_vty.c +++ b/src/libmsc/msc_vty.c @@ -466,7 +466,7 @@ DEFUN(cfg_msc_ipa_name, "This name is used for GSUP routing and must be set if more than one MSC is connected to the HLR. " "The default is 'MSC-00-00-00-00-00-00'.\n") { - if (!msc_parsing_config_file) { + if (vty->type != VTY_FILE) { vty_out(vty, "The IPA name cannot be changed at run-time; " "It can only be set in the configuraton file.%s", VTY_NEWLINE); return CMD_WARNING; |