]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Use more proper pointers to constant bytestrings
authorAlexander Zubkov <green@qrator.net>
Tue, 22 Aug 2023 12:44:18 +0000 (14:44 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Tue, 22 Aug 2023 12:44:18 +0000 (14:44 +0200)
conf/confbase.Y
proto/radv/config.Y
proto/radv/radv.h

index 3e8f580744e0f120a9c9b21cc87a85b276c4091a..3dd5fed7f0f36533e9770ffe2a7ba850fd08c840 100644 (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
index db68319423827295306965b20a136eff04737b98..eeafe6f454a8ba439217ffc168738a661eaaee15 100644 (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));
index 8c7161582eb039c8ce0064ea5f16686bfd843049..2baf0bad7be7d28c44904b5b4bc57d343394cb02 100644 (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 */
 };
 
 /*