diff src/pst2ldif.cpp @ 105:4703d622e95b

cleanup fedora9 compile warnings
author Carl Byington <carl@five-ten-sg.com>
date Sat, 11 Oct 2008 12:22:20 -0700
parents 39ba19372732
children 07d090676ce9
line wrap: on
line diff
--- a/src/pst2ldif.cpp	Thu Oct 09 12:04:40 2008 -0700
+++ b/src/pst2ldif.cpp	Sat Oct 11 12:22:20 2008 -0700
@@ -298,7 +298,7 @@
                         if (item->comment)
                             print_ldif_single("description", item->comment);
 
-                        for (int i=0; i<ldap_class.size(); i++)
+                        for (size_type i=0; i<ldap_class.size(); i++)
                             print_ldif_single("objectClass", ldap_class[i].c_str());
                         printf("\n");
                     }
@@ -497,7 +497,7 @@
 void build_cn(char *cn, size_t len, int nvalues, char *value, ...)
 {
     bool space_flag = false;
-    int i = 0;
+    size_t i = 0;
     va_list ap;
 
     va_start(ap, value);
@@ -640,7 +640,7 @@
             printf("objectClass: organization\n\n");
             printf("dn: cn=root, %s\n", ldap_base);
             printf("cn: root\n");
-            for (int i=0; i<ldap_class.size(); i++)
+            for (size_type i=0; i<ldap_class.size(); i++)
                 print_ldif_single("objectClass", ldap_class[i].c_str());
             printf("\n");
         }