buglwIP - A Lightweight TCP/IP stack - Bugs: bug #51238, LWIP_ARRAYSIZE() can't be used on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51238: LWIP_ARRAYSIZE() can't be used on lwip_cyclic_timers

Submitted by:  Stéphane Chatty <chatty>
Submitted on:  Wed 14 Jun 2017 08:42:37 PM UTC  
 
Category: Platform portsSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Wed 14 Jun 2017 09:08:52 PM UTC, comment #1:

Added const int with number of elements in array. Thanks for reporting!

Dirk Ziegelmeier <dziegel>
Project Member
Wed 14 Jun 2017 08:42:37 PM UTC, original submission:

A comment in timeouts.c about lwip_cyclic_timers says "To get the number of timers, use LWIP_ARRAYSIZE()". But lwip_cyclic_timers has type const struct lwip_cyclic_timer[] and its size can only be determined in timeouts.c where it is defined. Calling LWIP_ARRAYSIZE(lwip_cyclic_timers) elsewhere causes a compilation error.

Stéphane Chatty <chatty>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dziegel (Posted a comment)
  • -unavailable- added by chatty (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 14 Jun 2017 09:08:52 PM UTCdziegelStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1