forked from cellular-infrastructure/osmo-pcu
vty: Change API to have node installation be done by int
This commit fixes the go_parent_cb API according to libosmocore's commit of the same name. Fixes: pcu_vty.c:799:2: warning: initialization from incompatible pointer type [enabled by default] .go_parent_cb = pcu_vty_go_parent, Sponsored-by: On-Waves ehf
This commit is contained in:
parent
fea17f8b8c
commit
f76fedeed5
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#include "pcu_vty_functions.h"
|
#include "pcu_vty_functions.h"
|
||||||
|
|
||||||
enum node_type pcu_vty_go_parent(struct vty *vty)
|
int pcu_vty_go_parent(struct vty *vty)
|
||||||
{
|
{
|
||||||
switch (vty->node) {
|
switch (vty->node) {
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
@ -8,7 +8,7 @@ enum pcu_vty_node {
|
||||||
PCU_NODE = _LAST_OSMOVTY_NODE + 1,
|
PCU_NODE = _LAST_OSMOVTY_NODE + 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum node_type pcu_vty_go_parent(struct vty *vty);
|
int pcu_vty_go_parent(struct vty *vty);
|
||||||
int pcu_vty_is_config_node(struct vty *vty, int node);
|
int pcu_vty_is_config_node(struct vty *vty, int node);
|
||||||
|
|
||||||
int pcu_vty_init(const struct log_info *cat);
|
int pcu_vty_init(const struct log_info *cat);
|
||||||
|
|
Loading…
Reference in New Issue