]> The Tcpdump Group git mirrors - tcpdump/commitdiff
RADIUS: constify a couple static arrays
authorDenis Ovsienko <[email protected]>
Thu, 30 Aug 2018 14:25:59 +0000 (15:25 +0100)
committerDenis Ovsienko <[email protected]>
Thu, 30 Aug 2018 14:25:59 +0000 (15:25 +0100)
[skip ci]

print-radius.c

index 13918a45630c11ce3e1b33667025c17f9b7c71fc..c723fd5a2d64550e095e0c9973dbfd3fde6eeb20 100644 (file)
@@ -458,7 +458,7 @@ static const struct tok errorcausetype[] = {
 #define IP4_TRANSPORT_SUPPORTED 0x0000800000000000
 #define IP4_HOA_ONLY_SUPPORTED 0x0001000000000000
 #define INTER_MAG_ROUTING_SUPPORTED 0x0002000000000000
-static struct mip6_feature_vector {
+static const struct mip6_feature_vector {
                   uint64_t v;
                   const char *s;
                 } mip6_feature_vector[] = {
@@ -477,7 +477,7 @@ static struct mip6_feature_vector {
                                };
 
 
-static struct attrtype {
+static const struct attrtype {
                   const char *name;      /* Attribute name                 */
                   const char **subtypes; /* Standard Values (if any)       */
                   u_char siz_subtypes;   /* Size of total standard values  */