diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-03-08 16:37:08 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-03-08 16:37:08 +0000 |
commit | 4aa50d28b9ab6dddb5cfeb573ee26ba87e4dff11 (patch) | |
tree | f6ed045be6f2529d8160d4748caf048e1e9b756a /lib/libgeom/geom_xml2tree.c | |
parent | ffe9fd66ee99e7826da6cf3cac398687db12dff9 (diff) |
String the consumers into the list of the provider they are attached to.
Noticed by: jhb
Notes
Notes:
svn path=/head/; revision=126748
Diffstat (limited to 'lib/libgeom/geom_xml2tree.c')
-rw-r--r-- | lib/libgeom/geom_xml2tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libgeom/geom_xml2tree.c b/lib/libgeom/geom_xml2tree.c index 6c8d73837405..75959c3aca64 100644 --- a/lib/libgeom/geom_xml2tree.c +++ b/lib/libgeom/geom_xml2tree.c @@ -341,9 +341,13 @@ geom_xml2tree(struct gmesh *gmp, char *p) } LIST_FOREACH(co, &ge->consumer, consumer) { co->geom = geom_lookupid(gmp, co->geom)->ptr; - if (co->provider != NULL) + if (co->provider != NULL) { co->provider = geom_lookupid(gmp, co->provider)->ptr; + LIST_INSERT_HEAD( + &co->provider->consumers, + co, consumers); + } } } } |