]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove pointless casts (#5132)
authorJames Jones <jejones3141@gmail.com>
Thu, 3 Aug 2023 12:30:06 +0000 (07:30 -0500)
committerGitHub <noreply@github.com>
Thu, 3 Aug 2023 12:30:06 +0000 (07:30 -0500)
src/lib/util/calc.c

index 7861e9be3915ea99cc5c1c9754e0dbb17b7378ed..ef2a939a747c321ea675f6eaa385b43c34b2ef78 100644 (file)
@@ -845,8 +845,8 @@ static int calc_octets(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_box_t cons
 {
        uint8_t *buf;
        size_t len;
-       fr_value_box_t one = (fr_value_box_t){};
-       fr_value_box_t two = (fr_value_box_t){};
+       fr_value_box_t one = {};
+       fr_value_box_t two = {};
 
        fr_assert(dst->type == FR_TYPE_OCTETS);
 
@@ -984,8 +984,8 @@ static int calc_string(TALLOC_CTX *ctx, fr_value_box_t *dst, fr_value_box_t cons
 {
        char *buf;
        size_t len;
-       fr_value_box_t one = (fr_value_box_t){};
-       fr_value_box_t two = (fr_value_box_t){};
+       fr_value_box_t one = {};
+       fr_value_box_t two = {};
 
        fr_assert(dst->type == FR_TYPE_STRING);