comparison cinst/mozilla.c @ 280:6c4b3ff4a356

Fixed white space.
author Sascha Wilde <wilde@intevation.de>
date Wed, 02 Apr 2014 13:47:06 +0200
parents cb5f082e90c5
children 0f73fe4230c1
comparison
equal deleted inserted replaced
279:cb5f082e90c5 280:6c4b3ff4a356
495 apply_to_certs_and_profiles(bool fn(char *, SECItem *), 495 apply_to_certs_and_profiles(bool fn(char *, SECItem *),
496 seciteml_t **certs, char **pdirs) 496 seciteml_t **certs, char **pdirs)
497 { 497 {
498 SECItem *cert; 498 SECItem *cert;
499 bool success = true; 499 bool success = true;
500 500
501 while ((cert = seciteml_pop(certs)) != NULL) 501 while ((cert = seciteml_pop(certs)) != NULL)
502 { 502 {
503 for (int i=0; pdirs[i] != NULL; i++) 503 for (int i=0; pdirs[i] != NULL; i++)
504 { 504 {
505 if (! (*fn)(pdirs[i], cert)) 505 if (! (*fn)(pdirs[i], cert))
506 success = false; 506 success = false;
507 } 507 }
508 free(cert->data); 508 free(cert->data);
509 free(cert); 509 free(cert);
510 } 510 }
511 511
512 return success; 512 return success;
513 } 513 }
514 514
515 /** 515 /**
516 * @brief Parse IPC commands from standard input. 516 * @brief Parse IPC commands from standard input.
593 for (int i=0; pdirs[i] != NULL; i++) 593 for (int i=0; pdirs[i] != NULL; i++)
594 nss_list_certs(pdirs[i]); 594 nss_list_certs(pdirs[i]);
595 595
596 if (! apply_to_certs_and_profiles(remove_cert, &certs_to_remove, pdirs)) 596 if (! apply_to_certs_and_profiles(remove_cert, &certs_to_remove, pdirs))
597 return_code |= WARN_MOZ_COULD_NOT_REMOVE_CERT; 597 return_code |= WARN_MOZ_COULD_NOT_REMOVE_CERT;
598 598
599 if (! apply_to_certs_and_profiles(import_cert, &certs_to_add, pdirs)) 599 if (! apply_to_certs_and_profiles(import_cert, &certs_to_add, pdirs))
600 return_code |= WARN_MOZ_COULD_NOT_ADD_CERT; 600 return_code |= WARN_MOZ_COULD_NOT_ADD_CERT;
601 601
602 puts("NEW List of installed certs:"); 602 puts("NEW List of installed certs:");
603 for (int i=0; pdirs[i] != NULL; i++) 603 for (int i=0; pdirs[i] != NULL; i++)
604 nss_list_certs(pdirs[i]); 604 nss_list_certs(pdirs[i]);
605 605
606 strv_free(pdirs); 606 strv_free(pdirs);
607 } 607 }
608 exit(return_code); 608 exit(return_code);
609 } 609 }

http://wald.intevation.org/projects/trustbridge/