Closed u1adzik closed 1 month ago
That’s a good one, but:
- Why did you remove the comment on why we allocate the buffer on the heap?
Oh, I'm sorry, I didn't notice that. I will make a new PR soon with the comments left
You can also change the line above the one you changed, because POSIX does not guarantee the absence of other members (or even the ordering of the members) for struct iovec
either:
struct iovec iov = {buf, NBUF};
I didn’t find any other instances of initializing an externally-defined struct with non-designated initializers (othan than {0}
, which is OK).
there was an error while building plugins/network.c on musl (alpine linux)