diff options
-rw-r--r-- | dive.c | 4 | ||||
-rw-r--r-- | dive.h | 2 | ||||
-rw-r--r-- | libdivecomputer.c | 2 | ||||
-rw-r--r-- | parse-xml.c | 2 | ||||
-rw-r--r-- | uemis.c | 2 |
5 files changed, 6 insertions, 6 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; } @@ -281,7 +281,7 @@ extern struct dive *alloc_dive(void); extern void record_dive(struct dive *dive); extern struct sample *prepare_sample(struct dive **divep); -extern void finish_sample(struct dive *dive, struct sample *sample); +extern void finish_sample(struct dive *dive); extern void report_dives(gboolean imported); extern struct dive *fixup_dive(struct dive *dive); 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; diff --git a/parse-xml.c b/parse-xml.c index 684061072..6af4a9338 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1104,7 +1104,7 @@ static void sample_end(void) if (!dive) return; - finish_sample(dive, sample); + finish_sample(dive); sample = NULL; } @@ -231,7 +231,7 @@ void uemis_parse_divelog_binary(char *base64, void *datap) { sample->cylinderindex = u_sample->active_tank; sample->cylinderpressure.mbar= u_sample->tank_pressure * 10; uemis_event(dive, sample, u_sample); - finish_sample(dive, sample); + finish_sample(dive); i += 0x25; u_sample++; } |