diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-08-12 10:29:46 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-08-13 10:29:46 +0200 |
commit | df92652c953c2bb10a21526936296a468a52c00f (patch) | |
tree | f2dce611076ce3ef908bee78a9c01ed58185cbf1 | |
parent | bdcbe0a679e1a5b76c7b2f69374db4586480c625 (diff) |
vty: Fix compiler warning about type changes
osmo_client_main.c:57:2: warning: initialization from incompatible pointer type
.go_parent_cb = osmopcap_go_parent,
^
osmo_client_main.c:57:2: warning: (near initialization for ‘vty_info.go_parent_cb’)
CCLD osmo_pcap_client
CC osmo_server_main.o
osmo_server_main.c:56:2: warning: initialization from incompatible pointer type
.go_parent_cb = osmopcap_go_parent,
^
osmo_server_main.c:56:2: warning: (near initialization for ‘vty_info.go_parent_cb’)
Change-Id: If73c85a64789ef4bff63dcfe008e918e650b428f
-rw-r--r-- | include/osmo-pcap/common.h | 2 | ||||
-rw-r--r-- | src/osmo_common.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmo-pcap/common.h b/include/osmo-pcap/common.h index 9275f0a..b8f8110 100644 --- a/include/osmo-pcap/common.h +++ b/include/osmo-pcap/common.h @@ -44,7 +44,7 @@ enum { extern const struct log_info log_info; extern const char *osmopcap_copyright; -extern enum node_type osmopcap_go_parent(struct vty *vty); +extern int osmopcap_go_parent(struct vty *vty); extern int osmopcap_is_config_node(struct vty *vty, int node); #endif diff --git a/src/osmo_common.c b/src/osmo_common.c index b97394e..33ec1b2 100644 --- a/src/osmo_common.c +++ b/src/osmo_common.c @@ -63,7 +63,7 @@ const char *osmopcap_copyright = "There is NO WARRANTY, to the extent permitted by law.\r\n"; -enum node_type osmopcap_go_parent(struct vty *vty) +int osmopcap_go_parent(struct vty *vty) { switch (vty->node) { case CLIENT_NODE: |