diff options
author | Robert C. Helling <helling@atdotde.de> | 2018-05-08 16:24:51 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-05-14 23:47:00 +0300 |
commit | 969dfee9ec088acb942e211cb90329d2b8c0751f (patch) | |
tree | 89571c94dde158e2027108ba3dde7c8468caf351 /core/load-git.c | |
parent | 0b836f12fc714f0dfee6303699c9510f4cdf3b17 (diff) | |
download | subsurface-969dfee9ec088acb942e211cb90329d2b8c0751f.tar.gz |
Rename enum dive_comp_type to divemode_t
...as the usuage is not anymore about a computer but
a momentary dive mode. Rename the end indicator as well.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/load-git.c')
-rw-r--r-- | core/load-git.c | 6 |
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; } |