From: Arran Cudbard-Bell Date: Wed, 27 Nov 2024 23:10:36 +0000 (-0600) Subject: Realign fields X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a7ea778abff6dfc423b59ae5750e22a5e05eb06;p=thirdparty%2Ffreeradius-server.git Realign fields --- diff --git a/src/lib/util/sbuff.h b/src/lib/util/sbuff.h index 13b1010d6f3..ea590d27e2c 100644 --- a/src/lib/util/sbuff.h +++ b/src/lib/util/sbuff.h @@ -63,8 +63,8 @@ struct fr_sbuff_ptr_s { char const *p_i; //!< Immutable position pointer. char *p; //!< Mutable position pointer. }; - fr_sbuff_marker_t *next; //!< Next m in the list. - fr_sbuff_t *parent; //!< Owner of the marker + fr_sbuff_marker_t *next; //!< Next m in the list. + fr_sbuff_t *parent; //!< Owner of the marker }; struct fr_sbuff_s { @@ -88,22 +88,22 @@ struct fr_sbuff_s { char *p; //!< Mutable position pointer. }; - char const *err; //!< Where the last error occurred. + char const *err; //!< Where the last error occurred. - uint8_t is_const:1; //!< Can't be modified. - uint8_t adv_parent:1; //!< If true, advance the parent. + uint8_t is_const:1; //!< Can't be modified. + uint8_t adv_parent:1; //!< If true, advance the parent. + size_t shifted; //!< How many bytes this sbuff has been + ///< shifted since its creation. - size_t shifted; //!< How many bytes this sbuff has been - ///< shifted since its creation. + fr_sbuff_extend_t extend; //!< Function to re-populate or extend + ///< the buffer. - fr_sbuff_extend_t extend; //!< Function to re-populate or extend - ///< the buffer. - void *uctx; //!< Extend uctx data. + void *uctx; //!< Extend uctx data. - fr_sbuff_t *parent; //!< sbuff this sbuff was copied from. + fr_sbuff_t *parent; //!< sbuff this sbuff was copied from. - fr_sbuff_marker_t *m; //!< Pointers to update if the underlying - ///< buffer changes. + fr_sbuff_marker_t *m; //!< Pointers to update if the underlying + ///< buffer changes. }; /** Talloc sbuff extension structure