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/parse-xml.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/parse-xml.c')
-rw-r--r-- | core/parse-xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index fa7572ac9..c2b8b26c9 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -437,10 +437,10 @@ static void event_name(char *buffer, char *name) const char *libdc_divemode_text[] = { "oc", "cc", "pscr", "freedive", "gauge"}; /* Extract the dive computer type from the xml text buffer */ -static void get_dc_type(char *buffer, enum dive_comp_type *dct) +static void get_dc_type(char *buffer, enum divemode_t *dct) { if (trimspace(buffer)) { - for (enum dive_comp_type i = 0; i < NUM_DC_TYPE; i++) { + for (enum divemode_t i = 0; i < NUM_DIVEMODE; i++) { if (strcmp(buffer, divemode_text[i]) == 0) *dct = i; else if (strcmp(buffer, libdc_divemode_text[i]) == 0) @@ -459,7 +459,7 @@ static void event_divemode(char *buffer, int *value) if (size >= MAX_EVENT_NAME) size = MAX_EVENT_NAME - 1; buffer[size] = 0x0; - for (int i = 0; i < NUM_DC_TYPE; i++) { + for (int i = 0; i < NUM_DIVEMODE; i++) { if (!strcmp(buffer,divemode_text[i])) { *value = i; break; |