aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-10-20 11:27:26 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-25 13:05:21 +0000
commit4a547a1dcff6b30de61341bd0d94203760e60c84 (patch)
tree36d2797f0952b200730f6ef36e1d88d1ef0e9755
parent5614354be231293fd7b2a5be2ba37255e1094e45 (diff)
non-iu-build: guard vty libosmo-sigtran function calls.
The function calls osmo_ss7_vty_go_parent() and gtphub_vty_is_config_node() are not guarded by an ifdef. The functions are only needed for IU support where libosmo-sigtran is used. Guard the function calls with a BUILD_IU Change-Id: I1c609ef0c344ce825c313335c7e084bf97159262
-rw-r--r--src/gprs/gtphub_main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gprs/gtphub_main.c b/src/gprs/gtphub_main.c
index 782afb32..c3e25d52 100644
--- a/src/gprs/gtphub_main.c
+++ b/src/gprs/gtphub_main.c
@@ -115,6 +115,7 @@ static void signal_handler(int signal)
}
}
+#if BUILD_IU
int gtphub_vty_go_parent(struct vty *vty)
{
switch (vty->node) {
@@ -124,13 +125,16 @@ int gtphub_vty_go_parent(struct vty *vty)
return vty->node;
}
+#endif
int gtphub_vty_is_config_node(struct vty *vty, int node)
{
/* Check if libosmo-sccp declares the node in
* question as config node */
+#if BUILD_IU
if (osmo_ss7_is_config_node(vty, node))
return 1;
+#endif
switch (node) {
/* add items that are not config */
@@ -145,7 +149,9 @@ int gtphub_vty_is_config_node(struct vty *vty, int node)
static struct vty_app_info vty_info = {
.name = "OsmoGTPhub",
.version = PACKAGE_VERSION,
+#if BUILD_IU
.go_parent_cb = gtphub_vty_go_parent,
+#endif
.is_config_node = gtphub_vty_is_config_node,
};