diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-01-04 22:01:02 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-01-05 08:16:50 -0800 |
commit | 1d6903c65a4980ac51a3508db6a388ab07111341 (patch) | |
tree | 94f8a2ee1c4f363e44f1ddeebe2577404bafaf4b /dive.c | |
parent | 854391419f7ed669eab43ed36c6a13a313eb3436 (diff) | |
download | subsurface-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |