diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 19:06:14 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-09 21:47:36 -0800 |
commit | ae5c7a55be062d3113c9e4f24b476bdba82e8d33 (patch) | |
tree | 4c6595d930ca41280926dba07e38857c38b0280a /subsurface-core/uemis.c | |
parent | 349c27a96eb2731a697da5b4a50fe6c9ca7a0dd0 (diff) | |
download | subsurface-ae5c7a55be062d3113c9e4f24b476bdba82e8d33.tar.gz |
Clean up UEMIS downloader
Mostly signedness issues, but also removing useless code that didn't have
any effect.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/uemis.c')
-rw-r--r-- | subsurface-core/uemis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subsurface-core/uemis.c b/subsurface-core/uemis.c index 4135e0cfe..5635d5630 100644 --- a/subsurface-core/uemis.c +++ b/subsurface-core/uemis.c @@ -98,7 +98,7 @@ static int uemis_convert_base64(char *base64, uint8_t **data) } struct uemis_helper { - int diveid; + uint32_t diveid; int lbs; int divespot; int dive_site_uuid; @@ -106,7 +106,7 @@ struct uemis_helper { }; static struct uemis_helper *uemis_helper = NULL; -static struct uemis_helper *uemis_get_helper(int diveid) +static struct uemis_helper *uemis_get_helper(uint32_t diveid) { struct uemis_helper **php = &uemis_helper; struct uemis_helper *hp = *php; @@ -134,7 +134,7 @@ static void uemis_weight_unit(int diveid, int lbs) hp->lbs = lbs; } -int uemis_get_weight_unit(int diveid) +int uemis_get_weight_unit(uint32_t diveid) { struct uemis_helper *hp = uemis_helper; while (hp) { |