0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-09-16 18:35:19 +00:00

Use more proper pointers to constant bytestrings

This commit is contained in:
Alexander Zubkov 2023-08-22 14:44:18 +02:00 committed by Ondrej Zajicek
parent 9bf2048476
commit fea04d7c34
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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));

View File

@ -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 */
};
/*