diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-10-31 00:16:32 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-11-05 23:41:42 +0700 |
commit | 584cc7a26b975fb788d8079b6621187a82a401bc (patch) | |
tree | 2933b932a66fbec61e357db4629744e67dd8769d /src/host/layer23/src/mobile/vty_interface.c | |
parent | b7ff8b589332771f4843f4f050817bd92a577355 (diff) |
mobile/vty_interface.c: fix incompatible pointer type warning
According to the vty_app_info struct definition, the go_parent_cb()
should return an integer, but not enum. So, this change fixes the
following compiler warning:
> warning: initialization from incompatible pointer type
> .go_parent_cb = ms_vty_go_parent,
Change-Id: Ib55e43eaaebdd9fe0d74a030b1057ae82804a77e
Diffstat (limited to 'src/host/layer23/src/mobile/vty_interface.c')
-rw-r--r-- | src/host/layer23/src/mobile/vty_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/mobile/vty_interface.c b/src/host/layer23/src/mobile/vty_interface.c index b3777dc9..0f271941 100644 --- a/src/host/layer23/src/mobile/vty_interface.c +++ b/src/host/layer23/src/mobile/vty_interface.c @@ -2757,7 +2757,7 @@ DEFUN(cfg_shutdown_force, cfg_ms_shutdown_force_cmd, "shutdown force", return CMD_SUCCESS; } -enum node_type ms_vty_go_parent(struct vty *vty) +int ms_vty_go_parent(struct vty *vty) { switch (vty->node) { case MS_NODE: |