mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Do some whitespace cleanup
The previous commit was a patch from Lubomir, which also had some whitespace fixes (to go with some new whitespace bugs to replace them) in it. I removed the whitespace changes from that patch (don't mix whitespace fixes with other fixes, unless they are on the same lines!) but decided to look for other whitespace issues, and this is the result. I left the non-C files alone, some of the spec and script files also have whitespace at the end of lines etc. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
9d10574694
commit
9380f78c82
7 changed files with 18 additions and 18 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/* profile.c */
|
||||
/* creates all the necessary data for drawing the dive profile
|
||||
/* creates all the necessary data for drawing the dive profile
|
||||
* uses cairo to draw it
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
|
@ -873,7 +873,7 @@ static velocity_t velocity(int speed)
|
|||
else if (speed < -25) /* -5ft/min */
|
||||
v = SLOW;
|
||||
else if (speed < 25) /* very hard to find data, but it appears that the recommendations
|
||||
for descent are usually about 2x ascent rate; still, we want
|
||||
for descent are usually about 2x ascent rate; still, we want
|
||||
stable to mean stable */
|
||||
v = STABLE;
|
||||
else if (speed < 152) /* between 5 and 30ft/min is considered slow */
|
||||
|
|
@ -929,7 +929,7 @@ static struct plot_info *analyze_plot_info(struct plot_info *pi)
|
|||
int past = -2;
|
||||
while (i+past > 0 && entry[0].sec - entry[past].sec < 15)
|
||||
past--;
|
||||
entry->velocity = velocity((entry[0].depth - entry[past].depth) /
|
||||
entry->velocity = velocity((entry[0].depth - entry[past].depth) /
|
||||
(entry[0].sec - entry[past].sec));
|
||||
}
|
||||
} else
|
||||
|
|
@ -941,7 +941,7 @@ static struct plot_info *analyze_plot_info(struct plot_info *pi)
|
|||
struct plot_data *entry = pi->entry +i;
|
||||
analyze_plot_info_minmax(entry, pi->entry, pi->entry+nr);
|
||||
}
|
||||
|
||||
|
||||
return pi;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue