diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-08-23 00:26:52 +0200 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-08-23 00:30:40 +0200 |
commit | dab16ff3f5467e7e15952a835441e9204ac95702 (patch) | |
tree | cb7e77a24e73b1ed86742325a9dd506cefbd1ade | |
parent | 505fa9eae765a31289e3a1743f606e83b9cd65d0 (diff) |
hnbgw_vty.c: fix: properly pass pointer to g_hnb_gw
Otherwise the process hangs if the user enters:
$ show hnb NAME
hnbgw_vty.c: In function ‘show_one_hnb’:
hnbgw_vty.c:234:2: warning: passing argument 1 of
‘hnb_context_by_identity_info’
from incompatible pointer type
[enabled by default]
iuh/hnbgw.h:154:21: note: expected ‘struct hnb_gw *’
but argument is of type ‘struct hnb_gw **’
Change-Id: I42fdb10af5f6427886b5797325830dfc212af30f
-rw-r--r-- | src/hnbgw_vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hnbgw_vty.c b/src/hnbgw_vty.c index 15fdaf8..84a5f01 100644 --- a/src/hnbgw_vty.c +++ b/src/hnbgw_vty.c @@ -231,7 +231,7 @@ DEFUN(show_one_hnb, show_one_hnb_cmd, "show hnb NAME ", SHOW_STR "Display inform return CMD_SUCCESS; } - hnb = hnb_context_by_identity_info(&g_hnb_gw, identity_info); + hnb = hnb_context_by_identity_info(g_hnb_gw, identity_info); if (hnb == NULL) { vty_out(vty, "No HNB found with identity '%s'%s", identity_info, VTY_NEWLINE); return CMD_SUCCESS; |