OSSP CVS Repository

ossp - Check-in [3060]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3060
Date: 2002-Dec-31 23:08:57 (local)
2002-Dec-31 22:08:57 (UTC)
User:rse
Branch:
Comment: Fixed two compile-time warnings in sa_test.c
Tickets:
Inspections:
Files:
ossp-pkg/sa/ChangeLog      1.17 -> 1.18     6 inserted, 1 deleted
ossp-pkg/sa/sa_test.c      1.21 -> 1.22     2 inserted, 2 deleted

ossp-pkg/sa/ChangeLog 1.17 -> 1.18

--- ChangeLog    2002/12/04 12:43:03     1.17
+++ ChangeLog    2002/12/31 22:08:57     1.18
@@ -11,7 +11,12 @@
   This is a list of all changes to OSSP sa.
   For a more brief summary please have a look at the NEWS file.
 
-  Changes between 1.0.1 and 1.0.2 (07-Nov-2002 to xx-Dec-2002)
+  Changes between 1.0.2 and 1.0.3 (04-Dec-2002 to xx-Jan-2003)
+
+   o Fixed two compile-time warnings in sa_test.c.
+     [Ralf S. Engelschall]
+
+  Changes between 1.0.1 and 1.0.2 (07-Nov-2002 to 04-Dec-2002)
 
    o Fixed a few bugs and lots of internal type inconsistencies,
      all found by splint(1).


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