lwip-users
[Top][All Lists]
Advanced

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

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


From: Eric ARMENGAUD
Subject: [lwip-users] [init.c] missing ( ?
Date: Wed, 12 Feb 2014 14:30:54 +0100

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


 

 


reply via email to

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