summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-07-18 10:56:20 +0200
committerMaria Matejka <mq@ucw.cz>2022-07-18 10:56:20 +0200
commit9901ca6fb3683091c7eb424cbba8c7bc94e41cbb (patch)
tree4ff0defe08fb2db6858ae3fef5b7d904aa5848e1
parent812edb85e14de1d5fe07a246176b4ed1a2ec0054 (diff)
Fixed an annoying warning in ea_get_storage()
-rw-r--r--lib/route.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route.h b/lib/route.h
index 88a4373d..2d691215 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; }