Oddly, finishing a sample doesn't require a sample

So let's not pass it around

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-01-04 22:01:02 -08:00
parent 854391419f
commit 1d6903c65a
5 changed files with 6 additions and 6 deletions

4
dive.c
View file

@ -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;
}