diff options
Diffstat (limited to 'nest')
-rw-r--r-- | nest/a-path.c | 2 | ||||
-rw-r--r-- | nest/attrs.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/nest/a-path.c b/nest/a-path.c index 4ee34cf4..b6a30f54 100644 --- a/nest/a-path.c +++ b/nest/a-path.c @@ -741,7 +741,7 @@ pm_match(struct pm_pos *pos, u32 asn, u32 asn2) } static int -pm_match_set(struct pm_pos *pos, struct f_tree *set) +pm_match_set(struct pm_pos *pos, const struct f_tree *set) { struct f_val asn = { .type = T_INT }; diff --git a/nest/attrs.h b/nest/attrs.h index a17b8c05..6fb0a8fa 100644 --- a/nest/attrs.h +++ b/nest/attrs.h @@ -65,8 +65,8 @@ static inline struct adata *as_path_prepend(struct linpool *pool, const struct a struct f_path_mask_item { union { u32 asn; /* PM_ASN */ - struct f_line *expr; /* PM_ASN_EXPR */ - struct f_tree *set; /* PM_ASN_SET */ + const struct f_line *expr; /* PM_ASN_EXPR */ + const struct f_tree *set; /* PM_ASN_SET */ struct { /* PM_ASN_RANGE */ u32 from; u32 to; |