diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-03 13:01:49 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-03 21:43:34 -0800 |
commit | e5e2fb2038321a645be58497fdbccb30e321264c (patch) | |
tree | 1e99ed46b2818fa2b97defd274bd5f2d2814006e /gtk-gui.c | |
parent | 3c5ebfe03664ea9a719c9a5071caee63c3d813c2 (diff) | |
download | subsurface-e5e2fb2038321a645be58497fdbccb30e321264c.tar.gz |
Fix cylinder printout information
If we print out the pressure difference (because we do not have a cylinder
size), we didn't initialize the precision. We should print out pressures
without decimals.
The attached patch fixes that, and also avoids a NULL pointer printout
(which on Linux will just print out "(null)") if there is no cylinder
type descriptor string. It also cleans things up a bit and uses the
"cyl" pointer instead of repeating the "dive->cylinder[n]" thing.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
0 files changed, 0 insertions, 0 deletions