Commit da67d928 authored by Alessandro Rubini's avatar Alessandro Rubini

net: strange: needed to prevent failutre

I don't know why, but without this the next commit fails with a bad
assert error in the compiler.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent d451f516
......@@ -20,7 +20,7 @@
#define htons(x) x
#endif
int needIP;
int needIP = 1;
static uint8_t myIP[4];
/* bootp: bigger buffer, UDP based */
......@@ -73,9 +73,6 @@ void ipv4_init(void)
{
struct wr_sockaddr saddr;
/* Reset => need a fresh IP */
needIP = 1;
/* Bootp: use UDP engine activated but function arguments */
bootp_socket = ptpd_netif_create_socket(&__static_bootp_socket, NULL,
PTPD_SOCK_UDP, 68 /* bootpc */);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment