summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-20 06:24:03 +1200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-20 06:24:03 +1200
commitf8f5ffa69741982a1b7d658775219b8ddfacd242 (patch)
tree4e1b60d0d46f46c551872a7325acbfd8107b651f /profile.c
parent837dcde0c180883e3d75e90459b06bde9789b797 (diff)
downloadsubsurface-f8f5ffa69741982a1b7d658775219b8ddfacd242.tar.gz
Fix build problem
In commit 86c961614bfa ("Actually walk all dive computers, don't just claim to do so") I somehow managed to forget one hunk of the patch (I was editing out debug messages). And I clearly forgot to test compile the final patch as pushed. Apologies. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index 026b87187..0e5306adb 100644
--- a/profile.c
+++ b/profile.c
@@ -442,8 +442,9 @@ static void check_setpoint_events(struct dive *dive, struct divecomputer *dc, st
}
-struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer *dc)
+struct plot_info calculate_max_limits_new(struct dive *dive)
{
+ struct divecomputer *dc = &(dive->dc);
static struct plot_info pi;
int maxdepth = dive->maxdepth.mm;
int maxtime = 0;