aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateQueue.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/UpdateQueue.cxx')
-rw-r--r--src/UpdateQueue.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/UpdateQueue.cxx b/src/UpdateQueue.cxx
index 85eb22358..9479e76f5 100644
--- a/src/UpdateQueue.cxx
+++ b/src/UpdateQueue.cxx
@@ -19,6 +19,7 @@
#include "config.h"
#include "UpdateQueue.hxx"
+#include "util/Macros.hxx"
#include <glib.h>
@@ -36,9 +37,9 @@ static size_t update_queue_length;
unsigned
update_queue_push(const char *path, bool discard, unsigned base)
{
- assert(update_queue_length <= G_N_ELEMENTS(update_queue));
+ assert(update_queue_length <= ARRAY_SIZE(update_queue));
- if (update_queue_length == G_N_ELEMENTS(update_queue))
+ if (update_queue_length == ARRAY_SIZE(update_queue))
return 0;
update_queue[update_queue_length].path = g_strdup(path);