summaryrefslogtreecommitdiffstats
path: root/load-git.c
diff options
context:
space:
mode:
Diffstat (limited to 'load-git.c')
-rw-r--r--load-git.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/load-git.c b/load-git.c
index 02fc98b68..1cdb44cff 100644
--- a/load-git.c
+++ b/load-git.c
@@ -133,7 +133,7 @@ static duration_t get_duration(const char *line)
static enum dive_comp_type get_dctype(const char *line)
{
for (enum dive_comp_type i = 0; i < NUM_DC_TYPE; i++) {
- if (strcmp(line, dctype_text[i]) == 0)
+ if (strcmp(line, divemode_text[i]) == 0)
return i;
}
return 0;
@@ -528,7 +528,7 @@ static void parse_dc_duration(char *line, struct membuffer *str, void *_dc)
{ struct divecomputer *dc = _dc; dc->duration = get_duration(line); }
static void parse_dc_dctype(char *line, struct membuffer *str, void *_dc)
-{ struct divecomputer *dc = _dc; dc->dctype = get_dctype(line); }
+{ struct divecomputer *dc = _dc; dc->divemode = get_dctype(line); }
static void parse_dc_maxdepth(char *line, struct membuffer *str, void *_dc)
{ struct divecomputer *dc = _dc; dc->maxdepth = get_depth(line); }