mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Whitespace cleanup
Minor change to the perl postprocessing script and resulting changes to the affected source files. This deals with two issues: - "foreach"-like structures were not always treated correctly - some longer calculations that ended on "+ constant" were reformatted in a rather unatractive manner In one source file (divelist.c) I ended up adding braces to the sources... trying to cascade the indentation further down without having the block there seemed a lot more trouble than it's worth. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
917ce5aff5
commit
7c535452f9
10 changed files with 26 additions and 26 deletions
4
dive.c
4
dive.c
|
|
@ -670,7 +670,7 @@ static void fixup_duration(struct dive *dive)
|
|||
int duration = 0;
|
||||
|
||||
for_each_dc(dive, dc)
|
||||
duration = MAX(duration, dc->duration.seconds);
|
||||
duration = MAX(duration, dc->duration.seconds);
|
||||
|
||||
dive->duration.seconds = duration;
|
||||
}
|
||||
|
|
@ -896,7 +896,7 @@ struct dive *fixup_dive(struct dive *dive)
|
|||
dive->maxcns = dive->cns;
|
||||
|
||||
for_each_dc(dive, dc)
|
||||
fixup_dive_dc(dive, dc);
|
||||
fixup_dive_dc(dive, dc);
|
||||
|
||||
fixup_water_salinity(dive);
|
||||
fixup_surface_pressure(dive);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue