From: Maria Matejka Date: Mon, 18 Jul 2022 08:56:20 +0000 (+0200) Subject: Fixed an annoying warning in ea_get_storage() X-Git-Tag: v3.0-alpha1~171^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9901ca6fb3683091c7eb424cbba8c7bc94e41cbb;p=thirdparty%2Fbird.git Fixed an annoying warning in ea_get_storage() --- diff --git a/lib/route.h b/lib/route.h index 88a4373d7..2d6912156 100644 --- a/lib/route.h +++ b/lib/route.h @@ -423,7 +423,7 @@ static inline int ea_is_cached(const ea_list *r) { return r->flags & EALF_CACHED static inline struct ea_storage *ea_get_storage(ea_list *r) { ASSERT_DIE(ea_is_cached(r)); - return SKIP_BACK(struct ea_storage, l, r); + return SKIP_BACK(struct ea_storage, l[0], r); } static inline ea_list *ea_clone(ea_list *r) { ea_get_storage(r)->uc++; return r; }