From: Arran Cudbard-Bell Date: Wed, 29 Apr 2020 15:14:16 +0000 (-0500) Subject: Use the immutable pointers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eea81e107e0205b375dc1ee2a0c0fd76e69e27f;p=thirdparty%2Ffreeradius-server.git Use the immutable pointers --- diff --git a/src/lib/util/dbuff.h b/src/lib/util/dbuff.h index 9516664a6aa..83390685f02 100644 --- a/src/lib/util/dbuff.h +++ b/src/lib/util/dbuff.h @@ -157,13 +157,13 @@ _fr_dbuff_init(_out, \ */ #define FR_DBUFF_TMP(_start, _len_or_end) \ &(fr_dbuff_t){ \ - .start = _start, \ - .end = _Generic((_len_or_end), \ - size_t : (uint8_t const *)(_start) + (size_t)(_len_or_end), \ - uint8_t * : (uint8_t const *)(_len_or_end), \ - uint8_t const * : (uint8_t const *)(_len_or_end) \ - ), \ - .p = _p \ + .start_i = _start, \ + .end_i = _Generic((_len_or_end), \ + size_t : (uint8_t const *)(_start) + (size_t)(_len_or_end), \ + uint8_t * : (uint8_t const *)(_len_or_end), \ + uint8_t const * : (uint8_t const *)(_len_or_end) \ + ), \ + .p_i = _p \ } /** @} */