mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
854391419f
commit
1d6903c65a
5 changed files with 6 additions and 6 deletions
4
dive.c
4
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue