]> git.ozlabs.org Git - ccan/blobdiff - ccan/tcon/test/compile_fail-tcon_cast.c
talloc: remove const warning in _info example.
[ccan] / ccan / tcon / test / compile_fail-tcon_cast.c
index f80ef42c091dde6ff817ba8dc6ea10ce9c9b3fb0..3df0333ca047422eef3d83de1ea3b68063ab3df5 100644 (file)
@@ -25,5 +25,5 @@ int main(int argc, char *argv[])
 
        icon.raw.p = NULL;
        x = tcon_cast(&icon, tc1, icon.raw.p);
-       return 0;
+       return x != NULL ? 0 : 1;
 }