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 /libdivecomputer.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 'libdivecomputer.c')
-rw-r--r-- | libdivecomputer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c index daf724190..4ff41486d 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -175,7 +175,7 @@ sample_cb(parser_sample_type_t type, parser_sample_value_t value, void *userdata case SAMPLE_TYPE_TIME: sample = prepare_sample(divep); sample->time.seconds = value.time; - finish_sample(*divep, sample); + finish_sample(*divep); break; case SAMPLE_TYPE_DEPTH: sample->depth.mm = value.depth * 1000 + 0.5; |