From: Alan T. DeKok Date: Sun, 16 Feb 2025 20:33:07 +0000 (-0500) Subject: perhaps save a bit of space using single bits for booleans X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ae99a74dd7342d8725a4db2c48b9510afbb5940;p=thirdparty%2Ffreeradius-server.git perhaps save a bit of space using single bits for booleans --- diff --git a/src/protocols/der/der.h b/src/protocols/der/der.h index 9a833e1518c..2d43850db19 100644 --- a/src/protocols/der/der.h +++ b/src/protocols/der/der.h @@ -70,14 +70,14 @@ typedef struct { fr_der_tag_t sequence_of; fr_der_tag_t set_of; int64_t max; - bool is_sequence_of; - bool is_set_of; - bool is_pair; - bool is_pairs; - bool is_extensions; // This is a flag for a list X.509 extensions - bool has_default; - bool is_oid_leaf; - bool is_choice; + bool is_sequence_of : 1; + bool is_set_of : 1; + bool is_pair : 1; + bool is_pairs : 1; + bool is_extensions : 1; // This is a flag for a list X.509 extensions + bool has_default : 1; + bool is_oid_leaf : 1; + bool is_choice : 1; } fr_der_attr_flags_t; static inline fr_der_attr_flags_t const *fr_der_attr_flags(fr_dict_attr_t const *da)