mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +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;
|
unsigned int c;
|
||||||
while (x < size && (samples[x] & 0x80) == 0 && samples[x] != 0x40) {
|
while (x < size && (samples[x] & 0x80) == 0 && samples[x] != 0x40) {
|
||||||
c = cochran_predive_event_bytes(samples[x]) + 1;
|
c = cochran_predive_event_bytes(samples[x]) + 1;
|
||||||
//#ifdef COCHRAN_DEBUG
|
#ifdef COCHRAN_DEBUG
|
||||||
printf("Predive event: ", samples[x]);
|
printf("Predive event: ");
|
||||||
for (int y = 0; y < c && x + y < size; y++) printf("%02x ", samples[x + y]);
|
for (unsigned int y = 0; y < c && x + y < size; y++) printf("%02x ", samples[x + y]);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
//#endif
|
#endif
|
||||||
x += c;
|
x += c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue