comparison 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
comparison
equal deleted inserted replaced
104:39ba19372732 105:4703d622e95b
296 } 296 }
297 297
298 if (item->comment) 298 if (item->comment)
299 print_ldif_single("description", item->comment); 299 print_ldif_single("description", item->comment);
300 300
301 for (int i=0; i<ldap_class.size(); i++) 301 for (size_type i=0; i<ldap_class.size(); i++)
302 print_ldif_single("objectClass", ldap_class[i].c_str()); 302 print_ldif_single("objectClass", ldap_class[i].c_str());
303 printf("\n"); 303 printf("\n");
304 } 304 }
305 } 305 }
306 else { 306 else {
495 495
496 496
497 void build_cn(char *cn, size_t len, int nvalues, char *value, ...) 497 void build_cn(char *cn, size_t len, int nvalues, char *value, ...)
498 { 498 {
499 bool space_flag = false; 499 bool space_flag = false;
500 int i = 0; 500 size_t i = 0;
501 va_list ap; 501 va_list ap;
502 502
503 va_start(ap, value); 503 va_start(ap, value);
504 504
505 while (!value) { 505 while (!value) {
638 printf("dn: %s\n", ldap_base); 638 printf("dn: %s\n", ldap_base);
639 printf("o: %s\n", ldap_org); 639 printf("o: %s\n", ldap_org);
640 printf("objectClass: organization\n\n"); 640 printf("objectClass: organization\n\n");
641 printf("dn: cn=root, %s\n", ldap_base); 641 printf("dn: cn=root, %s\n", ldap_base);
642 printf("cn: root\n"); 642 printf("cn: root\n");
643 for (int i=0; i<ldap_class.size(); i++) 643 for (size_type i=0; i<ldap_class.size(); i++)
644 print_ldif_single("objectClass", ldap_class[i].c_str()); 644 print_ldif_single("objectClass", ldap_class[i].c_str());
645 printf("\n"); 645 printf("\n");
646 } 646 }
647 } 647 }
648 648