OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/sa_test.c versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/sa/sa_test.c 1.21 -> 1.22

--- sa_test.c    2002/10/30 20:22:06     1.21
+++ sa_test.c    2002/12/31 22:08:57     1.22
@@ -74,7 +74,7 @@
     if ((rv = sa_addr_create(&saa)) != SA_OK)
         ts_test_fail(TS_CTX, "sa_addr_create -> %d[%s] (expected %d[%s])",
                      rv, sa_error(rv), SA_OK, sa_error(SA_OK));
-    for (i = 0; i < sizeof(table)/sizeof(table[0]); i++) {
+    for (i = 0; i < (int)(sizeof(table)/sizeof(table[0])); i++) {
         ts_test_check(TS_CTX, "sa_addr_u2a(\"%s\")", table[i].in);
         if ((rv = sa_addr_u2a(saa, table[i].in)) != table[i].rv)
             ts_test_fail(TS_CTX, "sa_addr_a2u -> %d[%s] (expected %d[%s])",
@@ -125,7 +125,7 @@
 
     sa_addr_create(&saa1);
     sa_addr_create(&saa2);
-    for (i = 0; i < sizeof(table)/sizeof(table[0]); i++) {
+    for (i = 0; i < (int)(sizeof(table)/sizeof(table[0])); i++) {
         if ((rv = sa_addr_u2a(saa1, table[i].in)) != SA_OK)
             continue;
         if ((rv = sa_addr_u2a(saa2, table[i].acl)) != SA_OK)

CVSTrac 2.0.1