From ae5c7a55be062d3113c9e4f24b476bdba82e8d33 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Mar 2016 19:06:14 -0800 Subject: Clean up UEMIS downloader Mostly signedness issues, but also removing useless code that didn't have any effect. Signed-off-by: Dirk Hohndel --- subsurface-core/uemis.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'subsurface-core/uemis.c') 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) { -- cgit v1.2.3-70-g09d2