diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-10-25 05:55:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-10-27 21:25:01 +0800 |
commit | 58166e645971a4812fef23702f45cacc8e64e419 (patch) | |
tree | bedad70e39e2215a53105e0303c168e86140371a /smime/lib/e-cert.c | |
parent | c58b70659747967568a536e217b9440424709f92 (diff) | |
download | gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.gz gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.zst gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.zip |
Prefer G_N_ELEMENTS over sizeof calculations.
Diffstat (limited to 'smime/lib/e-cert.c')
-rw-r--r-- | smime/lib/e-cert.c | 2 |
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, ", "); |