diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-12-11 14:35:43 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-12-12 17:39:17 +0100 |
commit | 2599644d8161e6a091596e313ece56189d12348f (patch) | |
tree | 719a714a9ec019775e705925fce2d814386194e8 /src/gprs/sgsn_main.c | |
parent | 2e485767da7210c18621ba74962b94b7c1fd91cd (diff) |
remove pointless declaration of struct gsm_network
We were passing a NULL pointer of type struct gsm_network * to
ctrl_interface_setup_dynip(). Remove the pointless declaration
of this struct. Also, replace the sgsn_controlif_setup() helper
function with a direct call to ctrl_interface_setup_dynip().
The helper fnuction was just a thin wrapper around the latter.
Change-Id: Ib4151afa5bff01e63b462cca517fb60ac0503759
Related: OS#3356
Diffstat (limited to 'src/gprs/sgsn_main.c')
-rw-r--r-- | src/gprs/sgsn_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gprs/sgsn_main.c b/src/gprs/sgsn_main.c index 798e50797..f12270de8 100644 --- a/src/gprs/sgsn_main.c +++ b/src/gprs/sgsn_main.c @@ -450,8 +450,8 @@ int main(int argc, char **argv) /* start control interface after reading config for * ctrl_vty_get_bind_addr() */ - g_ctrlh = sgsn_controlif_setup(NULL, ctrl_vty_get_bind_addr(), - OSMO_CTRL_PORT_SGSN); + g_ctrlh = ctrl_interface_setup_dynip(NULL, ctrl_vty_get_bind_addr(), + OSMO_CTRL_PORT_SGSN, NULL); if (!g_ctrlh) { LOGP(DGPRS, LOGL_ERROR, "Failed to create CTRL interface.\n"); exit(1); |