From 80ff0925332d9d53f36aaa099e50969bd7bc32a4 Mon Sep 17 00:00:00 2001 From: Salvador Cuñat Date: Sat, 29 Aug 2020 07:48:43 +0200 Subject: datatrak.c - Do not return unsigned negative values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't really expect to get Nº of dives greater than the biggest integer value. Signed-off-by: Salvador Cuñat Signed-off-by: Salvador Cuñat --- core/datatrak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/datatrak.c b/core/datatrak.c index 60454ccf4..c7f70a9ed 100644 --- a/core/datatrak.c +++ b/core/datatrak.c @@ -582,7 +582,7 @@ bail: * Parses the header of the .add file, returns the number of dives in * the archive (must be the same than number of dives in .log file). */ -static unsigned int wlog_header_parser (struct memblock *mem) +static int wlog_header_parser (struct memblock *mem) { int tmp; unsigned char *runner = (unsigned char *) mem->buffer; -- cgit v1.2.3-70-g09d2