summaryrefslogtreecommitdiffstats
path: root/core/datatrak.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 07:21:37 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 07:21:37 -0700
commitc6bc88b50d3d4c2bc4d0949ada7300aad9641c6e (patch)
tree2fe20ebe9917445fe6e4601993721ce2658433fe /core/datatrak.c
parent3d8c0b27719ec6fd180c85608b241a53c123ca4c (diff)
downloadsubsurface-c6bc88b50d3d4c2bc4d0949ada7300aad9641c6e.tar.gz
Fix some warnings
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/datatrak.c')
-rw-r--r--core/datatrak.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/datatrak.c b/core/datatrak.c
index 4896974e2..e61e5c1c8 100644
--- a/core/datatrak.c
+++ b/core/datatrak.c
@@ -18,7 +18,8 @@
unsigned char lector_bytes[2], lector_word[4], tmp_1byte, *byte;
unsigned int tmp_2bytes;
char is_nitrox, is_O2, is_SCR;
-unsigned long tmp_4bytes, maxbuf;
+unsigned long tmp_4bytes;
+long maxbuf;
static unsigned int two_bytes_to_int(unsigned char x, unsigned char y)
{
@@ -146,7 +147,7 @@ static dc_status_t dt_libdc_buffer(unsigned char *ptr, int prf_length, int dc_mo
*/
unsigned char *dt_dive_parser(unsigned char *runner, struct dive *dt_dive)
{
- int rc, profile_length, n = 0, libdc_model;
+ int rc, profile_length, libdc_model;
char *tmp_notes_str = NULL;
unsigned char *tmp_string1 = NULL,
*locality = NULL,