From 01826c13b1139db70f14b14e18ab35ac4646c872 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Tue, 23 Aug 2016 16:31:02 +0200 Subject: vty: use OSMO_VTY_PORT_PCU instead of number Include vty/ports.h and use the proper constant. Change-Id: I9c5b7683f76994c539da5551f40df32379dc685e --- src/pcu_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp index e34d534d..afdfdc75 100644 --- a/src/pcu_main.cpp +++ b/src/pcu_main.cpp @@ -32,6 +32,7 @@ extern "C" { #include "pcu_vty.h" #include #include +#include #include #include #include @@ -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); -- cgit v1.2.3