From cae51ff0aa29d0e8ae312069a7473ff7cc901602 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 19 May 2014 06:38:37 +0900 Subject: 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 --- dive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dive.h') diff --git a/dive.h b/dive.h index b27eff218..3cb3a9980 100644 --- a/dive.h +++ b/dive.h @@ -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; -- cgit v1.2.3-70-g09d2