summaryrefslogtreecommitdiffstats
path: root/lib/libgeom
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-03-08 16:37:08 +0000
committerphk <phk@FreeBSD.org>2004-03-08 16:37:08 +0000
commitceb3b7463ee821262ec8ff0308673241a48677d9 (patch)
treef6ed045be6f2529d8160d4748caf048e1e9b756a /lib/libgeom
parentb62869e4ee5701adcc48e4cef972847213fd4d87 (diff)
downloadFreeBSD-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.c6
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);
+ }
}
}
}
OpenPOWER on IntegriCloud