Boosted by jsonstein@masto.deoan.org ("Jeff Sonstein"):
zwol@masto.hackers.town ("Zack Weinberg") wrote:
I can no longer count on getting trustworthy answers to this kind of question on Stack Overflow, so let's try here instead.
I need a *C language lawyer* to look at the functions `parse_exit_notif` and `marshal_exit_notif` at the bottom of this file <https://git.sr.ht/~zackw/rc-shim/tree/847a22f958cb772e4368e01ffa5ddbf14a68d0b0/item/nanoreaper-protocol.h> and tell me whether the double casts are necessary.
Note that the portability baseline for this code is C1999 + POSIX.1-2001 so if any relevant rules changed after that point please be explicit about what changed and when.