mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Whitespace and warning fixes for cochran.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
91d384d988
commit
6bfd20a014
1 changed files with 27 additions and 27 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue