From ca745578915fb7c579f63c578dc53584adc45170 Mon Sep 17 00:00:00 2001 From: Michele Di Pede Date: Wed, 28 Jan 2015 13:24:45 +0100 Subject: [PATCH] Fix unit test building --- test/unit/modunit_pico_tftp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/modunit_pico_tftp.c b/test/unit/modunit_pico_tftp.c index 64ed7b2b3..1077718fc 100644 --- a/test/unit/modunit_pico_tftp.c +++ b/test/unit/modunit_pico_tftp.c @@ -34,7 +34,7 @@ int pico_socket_sendto(struct pico_socket *s, const void *buf, const int len, vo return 0; } -int tftp_user_cb(struct pico_tftp_session *session, uint16_t err, uint8_t *block, uint32_t len, void *arg) +int tftp_user_cb(struct pico_tftp_session *session, uint16_t err, uint8_t *block, int32_t len, void *arg) { (void)session; (void)err; @@ -103,10 +103,10 @@ START_TEST(tc_tftp_finish) fail_if(example_session.state != TFTP_STATE_CLOSING); fail_if(!called_pico_socket_close); - /* Test eval_finish() len is PICO_TFTP_BLOCK_SIZE */ + /* Test eval_finish() len is PICO_TFTP_TOTAL_BLOCK_SIZE */ example_session.socket = &example_socket; called_pico_socket_close = 0; - tftp_eval_finish(&example_session, PICO_TFTP_BLOCK_SIZE); + tftp_eval_finish(&example_session, PICO_TFTP_TOTAL_BLOCK_SIZE); fail_if(called_pico_socket_close); } END_TEST