diff options
author | Paul Jakma <paul@quagga.net> | 2012-05-01 16:20:33 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2012-05-02 11:02:10 +0100 |
commit | 1dba254e107dd0c4254d58e9304fc6293b46fd4d (patch) | |
tree | 963153a04b71da32dd5906b80aaf24a1bb6c93e9 /tests/ecommunity_test.c | |
parent | 6ebeebb50610cc86d16e56bc1a33d63340094215 (diff) |
tests: Fix some compile errors and warnings
* aspath_test.c: match changes in aspath_unintern. Fix printf size_t warning.
* bgp_capability_test.c: compile warnings.
* bgp_mp_attr_test.c: update for attr parser context struct
* ecommunity_test.c: ecommunity_free/ecommunity
* test-checksum.c: some unused vars and funcs without need of prototypes.
Diffstat (limited to 'tests/ecommunity_test.c')
-rw-r--r-- | tests/ecommunity_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ecommunity_test.c b/tests/ecommunity_test.c index 418f659f..87f20f28 100644 --- a/tests/ecommunity_test.c +++ b/tests/ecommunity_test.c @@ -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_spec *sp) 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); } |