aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-08-23 16:31:02 +0200
committerHarald Welte <laforge@gnumonks.org>2016-08-27 02:19:48 +0000
commit01826c13b1139db70f14b14e18ab35ac4646c872 (patch)
treed9a0a0ec24dd8e24cc2d570aa043af974e894748
parent959d1dee67e1c6fcfc57b347be2fb7a2ed099b2d (diff)
vty: use OSMO_VTY_PORT_PCU instead of number
Include vty/ports.h and use the proper constant. Change-Id: I9c5b7683f76994c539da5551f40df32379dc685e
-rw-r--r--src/pcu_main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp
index e34d534..afdfdc7 100644
--- a/src/pcu_main.cpp
+++ b/src/pcu_main.cpp
@@ -32,6 +32,7 @@ extern "C" {
#include "pcu_vty.h"
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/logging.h>
+#include <osmocom/vty/ports.h>
#include <osmocom/core/stats.h>
#include <osmocom/core/gsmtap.h>
#include <osmocom/core/gsmtap_util.h>
@@ -250,7 +251,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "No config file: '%s' Using default config.\n",
config_file);
- rc = telnet_init(tall_pcu_ctx, NULL, 4240);
+ rc = telnet_init(tall_pcu_ctx, NULL, OSMO_VTY_PORT_PCU);
if (rc < 0) {
fprintf(stderr, "Error initializing telnet\n");
exit(1);