summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-01-04 22:01:02 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-01-05 08:16:50 -0800
commit1d6903c65a4980ac51a3508db6a388ab07111341 (patch)
tree94f8a2ee1c4f363e44f1ddeebe2577404bafaf4b /dive.c
parent854391419f7ed669eab43ed36c6a13a313eb3436 (diff)
downloadsubsurface-1d6903c65a4980ac51a3508db6a388ab07111341.tar.gz
Oddly, finishing a sample doesn't require a sample
So let's not pass it around Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dive.c b/dive.c
index 3774ba80d..9f57aed58 100644
--- a/dive.c
+++ b/dive.c
@@ -160,7 +160,7 @@ struct sample *prepare_sample(struct dive **divep)
return NULL;
}
-void finish_sample(struct dive *dive, struct sample *sample)
+void finish_sample(struct dive *dive)
{
dive->samples++;
}
@@ -490,7 +490,7 @@ static struct dive *add_sample(struct sample *sample, int time, struct dive *div
return NULL;
*p = *sample;
p->time.seconds = time;
- finish_sample(dive, p);
+ finish_sample(dive);
return dive;
}