23 Nov
2020
23 Nov
'20
11:51 a.m.
Andreas Rammhold <andreas@rammhold.de> writes:
On 11:33 23.11.20, Toke Høiland-Jørgensen wrote:
Andreas Rammhold <andreas@rammhold.de> writes:
On 11:07 23.11.20, Toke Høiland-Jørgensen wrote:
+void * +sl_allocz(slab *s) +{ + void *obj = sl_alloc(s); + memset(obj, 0, s->size); + return obj; +} +
This is the same function name and (almost same) implementation as further down in this patch. Did you forget to remove it?
No, look at the ifdefs - this one is for the FAKE_SLAB case :)
Ok, I got confused by the mail highlighting. In a proper editor it is more obvious.
Hehe, yeah, I often miss those ifdef sections entirely and end up sending out patches that don't compile at all if the config is wrong :) -Toke