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:
goldsimon
2007-10-09 19:59:56 +00:00
parent 536f2e42d2
commit 199648ff37
23 changed files with 35 additions and 117 deletions

View File

@@ -113,8 +113,6 @@ igmp_init(void)
IP4_ADDR(&allsystems, 224, 0, 0, 1);
IP4_ADDR(&allrouters, 224, 0, 0, 2);
igmp_group_list = NULL;
}
#ifdef LWIP_DEBUG

View File

@@ -55,17 +55,6 @@
#include "lwip/stats.h"
#include "arch/perf.h"
/**
* Initializes the IP layer.
*/
void
ip_init(void)
{
#if IP_REASSEMBLY
ip_reass_init();
#endif
}
/**
* Finds the appropriate network interface for a given IP address. It
* searches the list of network interfaces linearly. A match is found

View File

@@ -85,14 +85,6 @@ static u16_t ip_reass_pbufcount;
/* function prototypes */
static void dequeue_packet(struct ip_reassdata *ipr, struct ip_reassdata *prev);
/**
* Initializes IP reassembly states.
*/
void
ip_reass_init(void)
{
}
/**
* Reassembly timer base function
* for both NO_SYS == 0 and 1 (!).