Commit d6d49e5e authored by Federico Vaga's avatar Federico Vaga

wrtd:rt:*: fix GCC bug (?), force global variable initialization

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>


NOTE
This commit has been created by `git subtree` on the Mock Turtle repository
on tag mock-turtle-2.0

This commit will not compile
parent 90e7e3b4
......@@ -1436,6 +1436,11 @@ void init()
{
int i;
rx_ebone = 0;
rx_loopback = 0;
promiscuous_mode = 0;
memset(&last_received, 0, sizeof(struct wrtd_trigger_entry));
tlist_count = 0;
wr_state = WR_LINK_OFFLINE;
wr_enable_lock(0);
......
......@@ -460,6 +460,12 @@ static void init(void)
{
int i;
seq = 0;
sent_packets = 0;
coalesce_count = 0;
wr_state = 0;
tai_start = 0;
loop_queue_init();
wr_state = WR_LINK_OFFLINE;
......
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