From f8f5ffa69741982a1b7d658775219b8ddfacd242 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 20 Jan 2015 06:24:03 +1200 Subject: [PATCH] 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 --- profile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;