summaryrefslogtreecommitdiff
path: root/camel/tests/folder/test4.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-24 19:13:18 -0400
committerMatthew Barnes <mbarnes@redhat.com>2009-10-26 19:08:58 -0400
commit32417e99d20f007de5151d10c051805e7b795ecc (patch)
tree27b7bf52960e01ab1d186050de92249d9667f181 /camel/tests/folder/test4.c
parentd8a5369df5c9423198b211ac668f9e609c0259b8 (diff)
downloadevolution-data-server-32417e99d20f007de5151d10c051805e7b795ecc.tar.gz
Prefer G_N_ELEMENTS over sizeof calculations.
Diffstat (limited to 'camel/tests/folder/test4.c')
-rw-r--r--camel/tests/folder/test4.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/camel/tests/folder/test4.c b/camel/tests/folder/test4.c
index 11072a5c7..411b0c5a8 100644
--- a/camel/tests/folder/test4.c
+++ b/camel/tests/folder/test4.c
@@ -9,8 +9,6 @@
#include <camel/camel-service.h>
#include <camel/camel-store.h>
-#define ARRAY_LEN(x) (sizeof(x)/sizeof(x[0]))
-
static const gchar *imap_drivers[] = { "imap4" };
static gchar *remote_providers[] = {
@@ -36,7 +34,7 @@ gint main(gint argc, gchar **argv)
/* todo: cross-check everything with folder_info checks as well */
/* todo: subscriptions? */
- for (i=0;i<ARRAY_LEN(remote_providers);i++) {
+ for (i = 0; i < G_N_ELEMENTS (remote_providers); i++) {
path = getenv(remote_providers[i]);
if (path == NULL) {