--- embedaddon/quagga/tests/ecommunity_test.c 2012/02/21 17:26:11 1.1.1.1 +++ embedaddon/quagga/tests/ecommunity_test.c 2013/07/21 23:54:40 1.1.1.2 @@ -25,7 +25,7 @@ struct test_spec static struct test_segment { const char *name; const char *desc; - const u_char data[1024]; + const u_int8_t data[1024]; int len; struct test_spec sp; } test_segments [] = @@ -97,7 +97,7 @@ validate (struct ecommunity *ecom, const struct test_s str1, (etmp && str2) ? str2 : "NULL"); } - ecommunity_free (etmp); + ecommunity_free (&etmp); XFREE (MTYPE_ECOMMUNITY_STR, str1); XFREE (MTYPE_ECOMMUNITY_STR, str2); @@ -122,7 +122,7 @@ parse_test (struct test_segment *t) printf ("failed\n"); printf ("\n"); - ecommunity_unintern (ecom); + ecommunity_unintern (&ecom); }