|
From: | Stéphane Chatty |
Subject: | [lwip-devel] [bug #51238] LWIP_ARRAYSIZE() can't be used on lwip_cyclic_timers |
Date: | Wed, 14 Jun 2017 16:42:38 -0400 (EDT) |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/537.86.7 |
URL: <http://savannah.nongnu.org/bugs/?51238> Summary: LWIP_ARRAYSIZE() can't be used on lwip_cyclic_timers Project: lwIP - A Lightweight TCP/IP stack Submitted by: chatty Submitted on: Wed Jun 14 20:42:37 2017 Category: Platform ports Severity: 3 - Normal Item Group: Faulty Behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None lwIP version: git head _______________________________________________________ Details: 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. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?51238> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |