Change get_dive_by_diveid to get_dive_by_uniq_id

The original name was a really bad choice as we have a 'diveid' as part of
struct divecomputer - and that is not the diveid that is being used here.
Instead we use the 'id' member of struct dive which holds the "unique ID"
for this dive.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-05-19 06:38:37 +09:00
parent c4899aa8f1
commit cae51ff0aa
5 changed files with 15 additions and 15 deletions

2
dive.h
View file

@ -436,7 +436,7 @@ static inline struct dive *get_dive_by_uemis_diveid(uint32_t diveid, uint32_t de
return NULL;
}
static inline struct dive *get_dive_by_diveid(int id)
static inline struct dive *get_dive_by_uniq_id(int id)
{
int i;
struct dive *dive = NULL;