On Thursday 2023-08-10 14:30, Thomas Haller wrote: > >+bool nft_getprotobyname(const char *name, uint8_t *out_proto); Knowing that proto can only be uint8, why not make this work like getc() where the return type is a type with a larger range? int nft_getprotobyname(const char *name) { workworkwork(); if (error) return -1; return workresult; }