Fix compile of test_tcp.c unit test after introduction of tcp_next_iss hook

This commit is contained in:
Dirk Ziegelmeier 2016-12-18 21:46:49 +01:00
parent c21763f6cb
commit 7f319f5ec5

View File

@ -35,8 +35,8 @@ tcp_setup(void)
{ {
/* reset iss to default (6510) */ /* reset iss to default (6510) */
tcp_ticks = 0; tcp_ticks = 0;
tcp_ticks = 0 - (tcp_next_iss() - 6510); tcp_ticks = 0 - (tcp_next_iss(NULL) - 6510);
tcp_next_iss(); tcp_next_iss(NULL);
tcp_ticks = 0; tcp_ticks = 0;
test_tcp_timer = 0; test_tcp_timer = 0;
@ -513,8 +513,8 @@ START_TEST(test_tcp_rto_rexmit_wraparound)
/* create and initialize the pcb */ /* create and initialize the pcb */
tcp_ticks = 0; tcp_ticks = 0;
tcp_ticks = 0 - tcp_next_iss(); tcp_ticks = 0 - tcp_next_iss(NULL);
tcp_ticks = SEQNO1 - tcp_next_iss(); tcp_ticks = SEQNO1 - tcp_next_iss(NULL);
pcb = test_tcp_new_counters_pcb(&counters); pcb = test_tcp_new_counters_pcb(&counters);
EXPECT_RET(pcb != NULL); EXPECT_RET(pcb != NULL);
EXPECT(pcb->lastack == SEQNO1); EXPECT(pcb->lastack == SEQNO1);