From: James Jones Date: Thu, 3 Aug 2023 12:30:06 +0000 (-0500) Subject: Remove pointless casts (#5132) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfa8549156e600652a5779c080f95a52414fface;p=thirdparty%2Ffreeradius-server.git Remove pointless casts (#5132) --- diff --git a/src/lib/util/calc.c b/src/lib/util/calc.c index 7861e9be391..ef2a939a747 100644 --- a/src/lib/util/calc.c +++ b/src/lib/util/calc.c @@ -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);