From 25b4fee655e847081031fffb60d0d4d04ab1a8ee Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 23 Nov 2012 16:51:27 -1000 Subject: Move events and samples into a 'struct divecomputer' For now we only have one fixed divecomputer associated with each dive, so this doesn't really change any current semantics. But it will make it easier for us to associate a dive with multiple dive computers. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- save-xml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'save-xml.c') diff --git a/save-xml.c b/save-xml.c index a70aacc3e..db7d321bd 100644 --- a/save-xml.c +++ b/save-xml.c @@ -372,9 +372,9 @@ static void save_dive(FILE *f, struct dive *dive) save_overview(f, dive); save_cylinder_info(f, dive); save_weightsystem_info(f, dive); - save_events(f, dive->events); - for (i = 0; i < dive->samples; i++) - save_sample(f, dive->sample+i); + save_events(f, dive->dc.events); + for (i = 0; i < dive->dc.samples; i++) + save_sample(f, dive->dc.sample+i); fprintf(f, "\n"); } -- cgit v1.2.3-70-g09d2