]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
remove unnecessary struct/union
authorAlan T. DeKok <aland@freeradius.org>
Thu, 7 Apr 2022 20:55:58 +0000 (16:55 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 7 Apr 2022 20:59:51 +0000 (16:59 -0400)
this doesn't change anything other than formatting

src/lib/util/value.h

index ecea2732b1b8e014ff75264ae6f80e38f18f3d9a..9f3800bdaf2fd3f65584c805952d35cddc1a826b 100644 (file)
@@ -103,13 +103,9 @@ struct value_box_s {
                /*
                 *      Variable length values
                 */
-               struct {
-                       union {
-                               char const      * _CONST strvalue;      //!< Pointer to UTF-8 string.
-                               uint8_t const   * _CONST octets;        //!< Pointer to binary string.
-                               void            * _CONST ptr;           //!< generic pointer.
-                       };
-               };
+               char const      * _CONST strvalue;      //!< Pointer to UTF-8 string.
+               uint8_t const   * _CONST octets;        //!< Pointer to binary string.
+               void            * _CONST ptr;           //!< generic pointer.
 
                /*
                 *      Fixed length values