]> git.tdb.fi Git - ext/subsurface.git/commit
Use common helper function for the "no cylinder info" case
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Dec 2011 17:52:59 +0000 (09:52 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 9 Dec 2011 17:52:59 +0000 (09:52 -0800)
commit9b1ea2ae6d6998aaaa842dabf1182c279f7d19f5
tree5f41c0bfa1c471fd86b691c5f004c1d9d4b666d5
parentfe532a585cb0c1250cca5994a78394aadc3e14dd
Use common helper function for the "no cylinder info" case

Miika fixed the statistics code that didn't properly check for the "no
cylinder info" case - this cleans it up and just uses the helper
function in equipment.c.

Rename the helper to be slightly better named while at it.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
dive.h
equipment.c
statistics.c