OSSP CVS Repository

ossp - Difference in ossp-pkg/uuid/uuid.c versions 1.47 and 1.48
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/uuid/uuid.c 1.47 -> 1.48

--- uuid.c       2004/02/17 09:23:06     1.47
+++ uuid.c       2004/06/09 19:17:39     1.48
@@ -472,7 +472,7 @@
     time_t t_sec;
     char t_buf[19+1]; /* YYYY-MM-DD HH:MM:SS */
     struct tm *tm;
-    unsigned int i;
+    int i;
 
     /* sanity check argument(s) */
     if (uuid == NULL || data_ptr == NULL)
@@ -505,7 +505,7 @@
                 break;
             }
         }
-        for (i = 0; i < sizeof(uuid_dectab_variant)/sizeof(uuid_dectab_variant[0]); i++) {
+        for (i = 0; i < (int)(sizeof(uuid_dectab_variant)/sizeof(uuid_dectab_variant[0])); i++) {
             if (uuid_dectab_variant[i].num == tmp8) {
                 variant = uuid_dectab_variant[i].desc;
                 break;
@@ -520,7 +520,7 @@
         version = "n.a.";
     else {
         version = "unknown";
-        for (i = 0; i < sizeof(uuid_dectab_version)/sizeof(uuid_dectab_version[0]); i++) {
+        for (i = 0; i < (int)(sizeof(uuid_dectab_version)/sizeof(uuid_dectab_version[0])); i++) {
             if (uuid_dectab_version[i].num == (int)tmp16) {
                 version = uuid_dectab_version[i].desc;
                 break;

CVSTrac 2.0.1