Commit eaf4511a authored by Sven Robertz's avatar Sven Robertz
Browse files

minor fixes

parent 78559879
...@@ -290,7 +290,7 @@ LABCOMM_ENCODE(double, double) ...@@ -290,7 +290,7 @@ LABCOMM_ENCODE(double, double)
*/ */
static inline void labcomm_pack32(labcomm_writer_t *w, unsigned int data) static inline void labcomm_pack32(labcomm_writer_t *w, unsigned int data)
{ {
unsigned int tmp, i; unsigned int tmp;
tmp = data; tmp = data;
......
...@@ -142,8 +142,8 @@ int test_dec_missing_do_decode_one() ...@@ -142,8 +142,8 @@ int test_dec_missing_do_decode_one()
int main() int main()
{ {
printf("####> Begin tests.\n"); printf("####> Begin tests.\n");
size_t nbr_succeed = 0; unsigned int nbr_succeed = 0;
size_t nbr_tests = 6; // Increment this when new tests are written. unsigned int nbr_tests = 6; // Increment this when new tests are written.
nbr_succeed += test_enc_not_reg_encoder_sign(); nbr_succeed += test_enc_not_reg_encoder_sign();
nbr_succeed += test_enc_missing_do_reg(); nbr_succeed += test_enc_missing_do_reg();
nbr_succeed += test_enc_missing_do_encode(); nbr_succeed += test_enc_missing_do_encode();
...@@ -159,7 +159,7 @@ int main() ...@@ -159,7 +159,7 @@ int main()
//nbr_succeed += test_unimplemented_func(); // This test will be obsolete in the future ;-) //nbr_succeed += test_unimplemented_func(); // This test will be obsolete in the future ;-)
//nbr_succeed += test_user_def(); // There are no user defined errors in the library of course. //nbr_succeed += test_user_def(); // There are no user defined errors in the library of course.
printf("####> End tests.\nSummary: %i/%i tests succeed.\n", nbr_succeed, nbr_tests); printf("####> End tests.\nSummary: %u/%u tests succeed.\n", nbr_succeed, nbr_tests);
if (nbr_succeed == nbr_tests) { if (nbr_succeed == nbr_tests) {
return EXIT_SUCCESS; return EXIT_SUCCESS;
} else { } else {
......
Supports Markdown
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