X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fagar%2Ftest%2Fshortcut2.c;h=5ce28563301596a5a7d314bd2f5482b57aacd450;hp=aff89a616419ea58191f3d70b9bb6db6d4752f11;hb=c23a40c7f1ac9fad0146b46988a41f196aae933f;hpb=09378088f7f49f30cb61435712a8dc2e52a32f69 diff --git a/ccan/agar/test/shortcut2.c b/ccan/agar/test/shortcut2.c index aff89a61..5ce28563 100644 --- a/ccan/agar/test/shortcut2.c +++ b/ccan/agar/test/shortcut2.c @@ -79,9 +79,8 @@ static int shortcut2_edge_info_r(const struct agar_graph *gr, return 0; } -void shortcut2_graphr_init(struct shortcut2_graphr *s1gr) -{ - agar_init_graph(&s1gr->gr, shortcut2_first_edge_r, +struct shortcut2_graphr shortcut2_graphr = { + AGAR_INIT_GRAPH(shortcut2_first_edge_r, shortcut2_next_edge_r, - shortcut2_edge_info_r); -} + shortcut2_edge_info_r), +};