mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-15 04:36:53 +08:00
Changed initialization: many init functions are not needed any more since we now rely on the compiler initializing global and static variables to zero!
This commit is contained in:
@@ -86,10 +86,10 @@ struct lwip_setgetsockopt_data {
|
||||
};
|
||||
|
||||
static struct lwip_socket sockets[NUM_SOCKETS];
|
||||
static struct lwip_select_cb *select_cb_list = 0;
|
||||
static struct lwip_select_cb *select_cb_list;
|
||||
|
||||
static sys_sem_t socksem = 0;
|
||||
static sys_sem_t selectsem = 0;
|
||||
static sys_sem_t socksem;
|
||||
static sys_sem_t selectsem;
|
||||
|
||||
static void event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len);
|
||||
static void lwip_getsockopt_internal(void *arg);
|
||||
|
||||
@@ -54,18 +54,18 @@
|
||||
#include "netif/ppp_oe.h"
|
||||
|
||||
/* global variables */
|
||||
static void (* tcpip_init_done)(void *arg) = NULL;
|
||||
static void *tcpip_init_done_arg = NULL;
|
||||
static sys_mbox_t mbox = SYS_MBOX_NULL;
|
||||
static void (* tcpip_init_done)(void *arg);
|
||||
static void *tcpip_init_done_arg;
|
||||
static sys_mbox_t mbox = SYS_MBOX_NULL;
|
||||
|
||||
#if LWIP_TCPIP_CORE_LOCKING
|
||||
/** The global semaphore to lock the stack. */
|
||||
sys_sem_t lock_tcpip_core = 0;
|
||||
sys_sem_t lock_tcpip_core;
|
||||
#endif /* LWIP_TCPIP_CORE_LOCKING */
|
||||
|
||||
#if LWIP_TCP
|
||||
/* global variable that shows if the tcp timer is currently scheduled or not */
|
||||
static int tcpip_tcp_timer_active = 0;
|
||||
static int tcpip_tcp_timer_active;
|
||||
|
||||
/**
|
||||
* Timer callback function that calls tcp_tmr() and reschedules itself.
|
||||
|
||||
Reference in New Issue
Block a user