Whitespace and warning fixes for cochran.c

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-05-27 07:37:58 -07:00
parent 91d384d988
commit 6bfd20a014

View file

@ -474,11 +474,11 @@ static void cochran_parse_samples(struct dive *dive, const unsigned char *log,
unsigned int c;
while (x < size && (samples[x] & 0x80) == 0 && samples[x] != 0x40) {
c = cochran_predive_event_bytes(samples[x]) + 1;
//#ifdef COCHRAN_DEBUG
printf("Predive event: ", samples[x]);
for (int y = 0; y < c && x + y < size; y++) printf("%02x ", samples[x + y]);
#ifdef COCHRAN_DEBUG
printf("Predive event: ");
for (unsigned int y = 0; y < c && x + y < size; y++) printf("%02x ", samples[x + y]);
putchar('\n');
//#endif
#endif
x += c;
}