Skip to content

Commit

Permalink
Fix unit test building
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Di Pede committed Jan 28, 2015
1 parent 45cc4aa commit ca74557
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/modunit_pico_tftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ca74557

Please sign in to comment.