lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] [init.c] missing ( ?


From: address@hidden
Subject: Re: [lwip-users] [init.c] missing ( ?
Date: Wed, 12 Feb 2014 22:21:16 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.0.1

Fixed, also the other 2. Thanks for reporting.

Simon


Eric ARMENGAUD wrote:

Hello,

 

I would like be sure that a parenthesis is not missing

This is the actual code:

#if (LWIP_TCP && TCP_LISTEN_BACKLOG && (TCP_DEFAULT_LISTEN_BACKLOG < 0) || (TCP_DEFAULT_LISTEN_BACKLOG > 0xff))

  #error "If you want to use TCP backlog, TCP_DEFAULT_LISTEN_BACKLOG must fit into an u8_t"

#endif

 

I think it should be with an additional ( before TCP_DEFAULT_LISTEN_BACKLOG and at the end:

#if (LWIP_TCP && TCP_LISTEN_BACKLOG && ((TCP_DEFAULT_LISTEN_BACKLOG < 0) || (TCP_DEFAULT_LISTEN_BACKLOG > 0xff)))

 

Otherwise an error will occur even if TCP backlog is not used.

For example with TCP_LISTEN_BACKLOG set to 0 (TCP backlog not used) and TCP_DEFAULT_LISTEN_BACKLOG > 0xff, error appears.

 

Thanks for your confirmation.

 

/Eric

 


Eric ARMENGAUD – TINA: 159 3058

Description: Description: Description:
                cid:image001.jpg@01CD3DB7.ECAE5550

 

635 route des Lucioles
06560 Valbonne
Sophia-Antipolis - France

Office: +33 4 92 94 30 58
Fax:     +33 4 92 96 12 80
address@hidden


 

 



_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]