From fe3358fa9b560a43ed9a46e50128ec99b2624ab5 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 28 Feb 2020 21:56:18 +0200 Subject: ivi-compositor: Use the helpers for array length Bug-AGL: SPEC-3217 Signed-off-by: Marius Vlad Change-Id: I11f5b2a761062aeb5b8c146c2b3617362a353e76 --- src/ivi-compositor.h | 2 -- src/main.c | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h index 8631477..446390d 100644 --- a/src/ivi-compositor.h +++ b/src/ivi-compositor.h @@ -36,8 +36,6 @@ #include "agl-shell-server-protocol.h" -#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0])) - struct desktop_client { struct wl_resource *resource; struct wl_list link; /* ivi_compositor::desktop_clients */ diff --git a/src/main.c b/src/main.c index 8c4b10b..f715280 100644 --- a/src/main.c +++ b/src/main.c @@ -47,6 +47,7 @@ #include #include "shared/os-compatibility.h" +#include "shared/helpers.h" #include "agl-shell-server-protocol.h" -- cgit 1.2.3-korg