]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixed an annoying warning in ea_get_storage()
authorMaria Matejka <mq@ucw.cz>
Mon, 18 Jul 2022 08:56:20 +0000 (10:56 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 18 Jul 2022 08:56:20 +0000 (10:56 +0200)
lib/route.h

index 88a4373d744ca9734cbccba4e09e748bbb6d77d2..2d691215643f9079a6d7044d7ee12e865a85571a 100644 (file)
@@ -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; }