On Thu, 2023-08-10 at 23:48 +0200, Jan Engelhardt wrote: > > 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; > } > Hi, I will do (in version2). Thanks! Thomas