summaryrefslogtreecommitdiffstats
path: root/tests/aspath_test.c
diff options
context:
space:
mode:
authorpaul <paul>2005-10-11 03:48:28 +0000
committerpaul <paul>2005-10-11 03:48:28 +0000
commit03097637a2430d8be6f42dfe72edf031c5ad25b0 (patch)
treec25df4527636069ea494534a7e97d85cac17a7bb /tests/aspath_test.c
parent275002993c4aa92338594df329f3b3de3e79e631 (diff)
downloadquagga-03097637a2430d8be6f42dfe72edf031c5ad25b0.tar.bz2
quagga-03097637a2430d8be6f42dfe72edf031c5ad25b0.tar.xz
2005-10-11 Paul Jakma <paul.jakma@sun.com>
* test-privs.c: Privileges unit test. * Makefile.am: build testprivs * aspath_test.c: fix a few sign warnings
Diffstat (limited to 'tests/aspath_test.c')
-rw-r--r--tests/aspath_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/aspath_test.c b/tests/aspath_test.c
index f9e0a74f..f025cb77 100644
--- a/tests/aspath_test.c
+++ b/tests/aspath_test.c
@@ -18,8 +18,8 @@ struct test_spec
{
const char *shouldbe; /* the string the path should parse to */
const char *shouldbe_delete_confed; /* ditto, but once confeds are deleted */
- const int hops; /* aspath_count_hops result */
- const int confeds; /* aspath_count_confeds */
+ const unsigned int hops; /* aspath_count_hops result */
+ const unsigned int confeds; /* aspath_count_confeds */
const int private_as; /* whether the private_as check should pass or fail */
#define NOT_ALL_PRIVATE 0
#define ALL_PRIVATE 1
@@ -731,7 +731,7 @@ aggregate_test (struct tests *t)
static void
cmp_test ()
{
- int i;
+ unsigned int i;
#define CMP_TESTS_MAX \
(sizeof(left_compare) / sizeof (struct compare_tests))