summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dive.c4
-rw-r--r--dive.h2
-rw-r--r--libdivecomputer.c2
-rw-r--r--parse-xml.c2
-rw-r--r--uemis.c2
5 files changed, 6 insertions, 6 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;
}
diff --git a/dive.h b/dive.h
index bdf3aa6e1..52158ad78 100644
--- a/dive.h
+++ b/dive.h
@@ -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;
}
diff --git a/uemis.c b/uemis.c
index 28302b1c0..06ef5b423 100644
--- a/uemis.c
+++ b/uemis.c
@@ -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++;
}