diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/datatrak.c | 5 | ||||
-rw-r--r-- | core/profile.c | 2 |
2 files changed, 4 insertions, 3 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, diff --git a/core/profile.c b/core/profile.c index 36e365d48..26098b210 100644 --- a/core/profile.c +++ b/core/profile.c @@ -1293,7 +1293,7 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me { int pressurevalue, mod, ead, end, eadd; const char *depth_unit, *pressure_unit, *temp_unit, *vertical_speed_unit; - double depthvalue, tempvalue, speedvalue, sacvalue, density; + double depthvalue, tempvalue, speedvalue, sacvalue; int decimals; const char *unit; |