summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-01-24 14:04:02 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-24 08:47:34 -0800
commitd1262848d80d325605b5720961885f452426fb48 (patch)
tree18cd279b67525f5d4e713837e2f1187733a831e9
parent4982389ca762ef4831fc095f00e65e8c7b4bfc1a (diff)
downloadsubsurface-d1262848d80d325605b5720961885f452426fb48.tar.gz
Fix compile error in planner.c
Linus seems to have been too eager in the dc refactoring: a diveplan doesn't have a divecomputer. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index bab24c6a9..f58eec537 100644
--- a/planner.c
+++ b/planner.c
@@ -34,7 +34,7 @@ void dump_plan(struct diveplan *diveplan)
printf("\nDiveplan @ %04d-%02d-%02d %02d:%02d:%02d (surfpres %dmbar):\n",
tm.tm_year+1900, tm.tm_mon+1, tm.tm_mday,
tm.tm_hour, tm.tm_min, tm.tm_sec,
- diveplan->dc.surface_pressure);
+ diveplan->surface_pressure);
dp = diveplan->dp;
while (dp) {
printf("\t%3u:%02u: %dmm gas: %d o2 %d h2\n", FRACTION(dp->time, 60), dp->depth, dp->o2, dp->he);