aboutsummaryrefslogtreecommitdiffstats
path: root/smime
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-25 05:55:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-27 21:25:01 +0800
commit58166e645971a4812fef23702f45cacc8e64e419 (patch)
treebedad70e39e2215a53105e0303c168e86140371a /smime
parentc58b70659747967568a536e217b9440424709f92 (diff)
downloadgsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.gz
gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.zst
gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.zip
Prefer G_N_ELEMENTS over sizeof calculations.
Diffstat (limited to 'smime')
-rw-r--r--smime/lib/e-cert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/smime/lib/e-cert.c b/smime/lib/e-cert.c
index 02b6ccdb3b..2591678cec 100644
--- a/smime/lib/e-cert.c
+++ b/smime/lib/e-cert.c
@@ -416,7 +416,7 @@ e_cert_get_usage(ECert *cert)
GString *str = g_string_new("");
CERTCertificate *icert = e_cert_get_internal_cert (cert);
- for (i=0;i<sizeof(usageinfo)/sizeof(usageinfo[0]);i++) {
+ for (i = 0; i < G_N_ELEMENTS (usageinfo); i++) {
if (icert->keyUsage & usageinfo[i].bit) {
if (str->len != 0)
g_string_append(str, ", ");
class='deletions'>-0/+10 * Fix usage of UTF8 locales.demon2008-05-202-1/+22 * - Mark BROKEN: does not compile against recent php5pav2008-05-201-0/+2 * Add port www/xpi-leechblock:sat2008-05-205-0/+60 * Add a couple of new xpi extensions,sat2008-05-208-0/+95 * Update to 2.1pre36demon2008-05-192-4/+4 * - Include some ports in perl5 category.araujo2008-05-1928-28/+28 * Update [stable branch] to 0.6.31.osa2008-05-193-14/+11 * Update to latest development version 0.7.0.osa2008-05-192-4/+4 * Sakai is an online Collaboration and Learning Environment. Many users ofmiwi2008-05-196-0/+1349 * - Update to 2.3miwi2008-05-183-20/+4 * Update to version 2.46.brix2008-05-183-4/+7 * - Update to 0.62.chinsan2008-05-182-4/+4 * HTML::WikiConverter::GoogleCode - Convert HTML to Google Code wiki markup.chinsan2008-05-185-0/+39 * - Update to 0.38.chinsan2008-05-182-4/+4 * - Update to 5.0b.chinsan2008-05-182-4/+4 * Update port to PRE6.adrian2008-05-186-27/+27 * - Update www/mod_evasive to 1.10.1brd2008-05-175-90/+11 * Chase the repocopy of www/mod_evasive20 -> www/mod_evasive.brd2008-05-171-1/+1 * - Update to 1.18.araujo2008-05-172-7/+7 * - Update to 2.0.7miwi2008-05-173-4/+6 * - Update to 200805162342miwi2008-05-173-14/+5 * - Fix dependenciespav2008-05-171-10/+5 * - Update to 1.4.18miwi2008-05-163-5/+11 * - Update to 1.9.11miwi2008-05-163-12/+5 * - Fix a mistake I (the maintainer) had introduced regarding themiwi2008-05-163-11/+12 * - Correct an issue that prevented the definition of the default cachemgr.cgimiwi2008-05-164-22/+120 * - scloader is running often out of memory, increase maximum jvm heapsize to 5...miwi2008-05-162-1/+2 * - Update to 5.4.2b1mm2008-05-152-6/+5 * - Update to 20080514 snapshotlwhsu2008-05-143-4/+36 * - Update to 0.96.1lwhsu2008-05-1412-32/+16 * Updated to 1.104lth2008-05-142-7/+6 * - Update to 1.24sat2008-05-142-6/+6 * - Update to 1.6.5sat2008-05-142-4/+4 * - cleanup pkg-plistdinoex2008-05-141-1/+0 * - Update to 0.9.14miwi2008-05-133-6/+12 * - Update to 0.9.1miwi2008-05-132-4/+4 * Update to 0.6.31.osa2008-05-132-4/+4 * Fix spurious warnings that appear when working with POST forms.tobez2008-05-132-0/+12 * - fix custom apache_flagsdinoex2008-05-121-1/+1 * - update to etoile 0.2dinoex2008-05-116-53/+75 * Fix for WITH_USE_REDIRECT_URL; previously did not work.koitsu2008-05-111-1/+1 * - Update to 2008-05-05.chinsan2008-05-104-199/+571 * - add HTML-StripScripts-Parser 1.02leeym2008-05-105-0/+43 * - add HTML-StripScripts 1.04leeym2008-05-105-0/+53 * Update to 3.5 gamma 3johans2008-05-092-4/+4 * Update to 3.6 beta 11johans2008-05-092-4/+4 * - Update to version 2.45brix2008-05-093-4/+5 * - Update to 2.6STABLE20miwi2008-05-083-11/+11 * Update to 0.09.tobez2008-05-082-4/+4 * Update to 3.37.tobez2008-05-082-4/+4 * - Update to 0.4.4sat2008-05-072-4/+4 * Habari represents a fresh start to the idea of blogging.itetcu2008-05-065-0/+351 * - Update to 3.1.1beech2008-05-063-83/+727 * - Mark BROKEN: does not patchpav2008-05-061-0/+2 * - Not supported on amd64/5pav2008-05-051-1/+6 * - fix build for option WITH_GNUSTEP_DEVELdinoex2008-05-052-0/+18 * Update to 1.18mat2008-05-052-4/+4 * Update to 0.79mat2008-05-052-4/+4 * Update to 0.22mat2008-05-052-4/+4 * Rename www/neon to www/neon26 to make the integrationedwin2008-05-05