datatrak.c - Do not return unsigned negative values

We don't really expect to get Nº of dives greater than the biggest
integer value.

Signed-off-by: Salvador Cuñat <salvador,cunat@gmail.com>
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
This commit is contained in:
Salvador Cuñat 2020-08-29 07:48:43 +02:00 committed by Dirk Hohndel
parent c888a1727e
commit 80ff092533

View file

@ -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;