summaryrefslogtreecommitdiffstats
path: root/core/load-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/load-git.c')
-rw-r--r--core/load-git.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/load-git.c b/core/load-git.c
index 67a2dfa29..731045087 100644
--- a/core/load-git.c
+++ b/core/load-git.c
@@ -162,9 +162,9 @@ static duration_t get_duration(const char *line)
return d;
}
-static enum dive_comp_type get_dctype(const char *line)
+static enum divemode_t get_dctype(const char *line)
{
- for (enum dive_comp_type i = 0; i < NUM_DC_TYPE; i++) {
+ for (enum divemode_t i = 0; i < NUM_DIVEMODE; i++) {
if (strcmp(line, divemode_text[i]) == 0)
return i;
}
@@ -725,7 +725,7 @@ static void parse_dc_watertemp(char *line, struct membuffer *str, void *_dc)
int get_divemode(const char *divemodestring) {
- for (int i = 0; i < NUM_DC_TYPE; i++) {
+ for (int i = 0; i < NUM_DIVEMODE; i++) {
if (!strcmp(divemodestring, divemode_text[i]))
return i;
}