summaryrefslogtreecommitdiff
path: root/staticd/static_nb_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'staticd/static_nb_config.c')
-rw-r--r--staticd/static_nb_config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/staticd/static_nb_config.c b/staticd/static_nb_config.c
index deeca97b0e..470c7bdad5 100644
--- a/staticd/static_nb_config.c
+++ b/staticd/static_nb_config.c
@@ -122,7 +122,7 @@ struct nexthop_iter {
static int nexthop_iter_cb(const struct lyd_node *dnode, void *arg)
{
struct nexthop_iter *iter = arg;
- int nh_type;
+ enum static_nh_type nh_type;
nh_type = yang_dnode_get_enum(dnode, "./nh-type");
@@ -141,7 +141,7 @@ static bool static_nexthop_create(struct nb_cb_create_args *args)
struct static_path *pn;
struct ipaddr ipaddr;
struct static_nexthop *nh;
- int nh_type;
+ enum static_nh_type nh_type;
const char *ifname;
const char *nh_vrf;
@@ -304,7 +304,7 @@ static int static_nexthop_mpls_label_modify(struct nb_cb_modify_args *args)
static int static_nexthop_onlink_modify(struct nb_cb_modify_args *args)
{
struct static_nexthop *nh;
- static_types nh_type;
+ enum static_nh_type nh_type;
switch (args->event) {
case NB_EV_VALIDATE:
@@ -352,7 +352,7 @@ static int static_nexthop_color_destroy(struct nb_cb_destroy_args *args)
static int static_nexthop_bh_type_modify(struct nb_cb_modify_args *args)
{
struct static_nexthop *nh;
- static_types nh_type;
+ enum static_nh_type nh_type;
switch (args->event) {
case NB_EV_VALIDATE: