Re: [PATCH] object-file: use `container_of()` to convert from base types
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Feb 19, 2026, 13:43 UTC
- Message-ID
- <aZcTcgKDg6N4QW3j@pks.im>
- In-Reply-To
- <20260218210120.1146078-1-jltobler@gmail.com>
On Wed, Feb 18, 2026 at 03:01:20PM -0600, Justin Tobler wrote:
> To improve code hygiene, replace direct casts from `struct > odb_transaction` and `struct odb_read_stream` to their concrete > implementations with `container_of()`.
Right. The reason we want to do this is so that we become independent of the order in which members in `struct odb_read_stream` are declared.
The changes all look good to me, thanks!
Patrick