Re: [nft PATCH] src: use reentrant getprotobyname_r()/getprotobynumber_r()/getservbyport_r()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux