Uemis downloader: parse dive_no as well

[Dirk Hohndel: refactored one huge commit into smaller pieces]

Signed-off-by: Guido Lerch <guido.lerch@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Guido Lerch 2015-09-05 11:20:13 -07:00 committed by Dirk Hohndel
parent ff0859ff21
commit 040caaa00b

View file

@ -727,6 +727,8 @@ static void parse_tag(struct dive *dive, char *tag, char *val)
} else if (!strcmp(tag, "u8SuitThickness")) {
if (*suit_thickness[atoi(val)])
uemis_add_string(translate("gettextFromC", suit_thickness[atoi(val)]), &dive->suit);
} else if (!strcmp(tag, "dive_no")) {
dive->number = atoi(val);
}
}