From 1d415706a6e948fe6dcc3b5dab45812b297f77a1 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 2 Jun 2016 11:30:53 +0930 Subject: [PATCH 1/1] tcon: add testcase for const members in tcon_container_of() Signed-off-by: Rusty Russell --- ccan/tcon/test/compile_ok-container.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccan/tcon/test/compile_ok-container.c b/ccan/tcon/test/compile_ok-container.c index 9493c4dc..a8347f7a 100644 --- a/ccan/tcon/test/compile_ok-container.c +++ b/ccan/tcon/test/compile_ok-container.c @@ -19,13 +19,13 @@ struct info_base { struct info_tcon { struct info_base base; - TCON(TCON_CONTAINER(concan, struct outer, inner)); + TCON(TCON_CONTAINER(fi, struct outer, inner)); }; int main(int argc, char *argv[]) { /* Const should work! */ - const struct outer *ovar; + const struct outer *ovar = NULL; struct outer *o; struct info_tcon info; -- 2.39.2