diff options
author | Guido Lerch <guido.lerch@gmail.com> | 2015-09-05 11:20:13 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-05 11:29:13 -0700 |
commit | 040caaa00b6874e1e93320d4c1c1aa6abba8fee4 (patch) | |
tree | c2b2b40d6f516fc8ca51298f3636a24b64d6a3ea /uemis-downloader.c | |
parent | ff0859ff213bca011e33c74db01e1e8e4803fa18 (diff) | |
download | subsurface-040caaa00b6874e1e93320d4c1c1aa6abba8fee4.tar.gz |
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>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 16d7811ae..fdaea876a 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -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); } } |