mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 08:38:42 +00:00
Use more proper pointers to constant bytestrings
This commit is contained in:
parent
9bf2048476
commit
fea04d7c34
@ -94,7 +94,7 @@ CF_DECLS
|
||||
struct channel_limit cl;
|
||||
struct timeformat *tf;
|
||||
mpls_label_stack *mls;
|
||||
struct bytestring *bs;
|
||||
const struct bytestring *bs;
|
||||
}
|
||||
|
||||
%token END CLI_MARKER INVALID_TOKEN ELSECOL DDOT
|
||||
|
@ -26,7 +26,7 @@ static list radv_dns_list; /* Used by radv_rdnss and radv_dnssl */
|
||||
static u8 radv_mult_val; /* Used by radv_mult for second return value */
|
||||
|
||||
static inline void
|
||||
radv_add_to_custom_list(list *l, int type, struct bytestring *payload)
|
||||
radv_add_to_custom_list(list *l, int type, const struct bytestring *payload)
|
||||
{
|
||||
if (type < 0 || type > 255) cf_error("RA cusom type must be in range 0-255");
|
||||
struct radv_custom_config *cf = cfg_allocz(sizeof(struct radv_custom_config));
|
||||
|
@ -129,7 +129,7 @@ struct radv_custom_config
|
||||
{
|
||||
node n;
|
||||
u8 type; /* Identifier of the type of option */
|
||||
struct bytestring *payload; /* Payload of the option */
|
||||
const struct bytestring *payload; /* Payload of the option */
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user