aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-core/parse-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core/parse-xml.c')
-rw-r--r--subsurface-core/parse-xml.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/subsurface-core/parse-xml.c b/subsurface-core/parse-xml.c
index 12e029fe2..17bd69d53 100644
--- a/subsurface-core/parse-xml.c
+++ b/subsurface-core/parse-xml.c
@@ -2013,7 +2013,7 @@ const char *preprocess_divelog_de(const char *buffer)
if (ret) {
xmlParserCtxtPtr ctx;
char buf[] = "";
- int i;
+ size_t i;
for (i = 0; i < strlen(ret); ++i)
if (!isascii(ret[i]))
@@ -2260,7 +2260,8 @@ extern int dm4_dive(void *param, int columns, char **data, char **column)
{
(void) columns;
(void) column;
- int i, interval, retval = 0;
+ unsigned int i;
+ int interval, retval = 0;
sqlite3 *handle = (sqlite3 *)param;
float *profileBlob;
unsigned char *tempBlob;
@@ -2388,7 +2389,8 @@ extern int dm5_dive(void *param, int columns, char **data, char **column)
{
(void) columns;
(void) column;
- int i, interval, retval = 0, block_size;
+ unsigned int i;
+ int interval, retval = 0, block_size;
sqlite3 *handle = (sqlite3 *)param;
unsigned const char *sampleBlob;
char *err = NULL;