Mercurial > libpst
comparison src/pst2ldif.cpp @ 106:07d090676ce9 stable-0-6-20
cleanup fedora9 compile warnings
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sat, 11 Oct 2008 12:36:00 -0700 |
parents | 4703d622e95b |
children | 1b2a4fac1303 |
comparison
equal
deleted
inserted
replaced
105:4703d622e95b | 106:07d090676ce9 |
---|---|
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 (size_type i=0; i<ldap_class.size(); i++) | 301 for (vector<string>::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 { |
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 (size_type i=0; i<ldap_class.size(); i++) | 643 for (vector<string>::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 |