Thread (3 messages) 3 messages, 3 authors, 2026-02-20

Re: [PATCH] object-file: use `container_of()` to convert from base types

From: Patrick Steinhardt <hidden>
Date: 2026-02-19 13:43:26

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help