diff options
author | phk <phk@FreeBSD.org> | 2004-03-08 16:37:08 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-03-08 16:37:08 +0000 |
commit | ceb3b7463ee821262ec8ff0308673241a48677d9 (patch) | |
tree | f6ed045be6f2529d8160d4748caf048e1e9b756a /lib/libgeom | |
parent | b62869e4ee5701adcc48e4cef972847213fd4d87 (diff) | |
download | FreeBSD-src-ceb3b7463ee821262ec8ff0308673241a48677d9.zip FreeBSD-src-ceb3b7463ee821262ec8ff0308673241a48677d9.tar.gz |
String the consumers into the list of the provider they are attached to.
Noticed by: jhb
Diffstat (limited to 'lib/libgeom')
-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 6c8d738..75959c3 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); + } } } } |