summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-10-31 00:16:32 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-11-05 23:41:42 +0700
commit584cc7a26b975fb788d8079b6621187a82a401bc (patch)
tree2933b932a66fbec61e357db4629744e67dd8769d
parentb7ff8b589332771f4843f4f050817bd92a577355 (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
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/vty.h2
-rw-r--r--src/host/layer23/src/mobile/vty_interface.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/vty.h b/src/host/layer23/include/osmocom/bb/mobile/vty.h
index 1f1341bc..3bec1139 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/vty.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/vty.h
@@ -12,7 +12,7 @@ enum ms_vty_node {
SUPPORT_NODE,
};
-enum node_type ms_vty_go_parent(struct vty *vty);
+int ms_vty_go_parent(struct vty *vty);
int ms_vty_init(void);
extern void vty_notify(struct osmocom_ms *ms, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
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: