Browse Source

tcon: add testcase for const members in tcon_container_of()

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 9 years ago
parent
commit
1d415706a6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ccan/tcon/test/compile_ok-container.c

+ 2 - 2
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;