summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
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;
}