aboutsummaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2014-06-01 18:25:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 20:40:03 -0700
commitee36bf8bf34013c35120b6c3cc4ae5edcf74b235 (patch)
treea8164990f4685ddff4c6c5ececc72ec0a30579ce /dive.c
parentd825d689dd610b4e85f5a7b454927c6f4f3e2e4e (diff)
downloadsubsurface-ee36bf8bf34013c35120b6c3cc4ae5edcf74b235.tar.gz
Create simple non-thread-safe "gasname()" function
Every single user of the get_gas_name() function wanted to just use the result to create a message or printout, and that made the interface a bit cumbersome. This adds a "gasname()" wrapper that returns a static buffer with the result in it, which is neither pretty nor thread-safe, but is a much simpler interface to work with. Our dive planning isn't multi-threaded, so nothing should care. [ This also converts a few open-coded gasname debug printouts to use the helper function, resulting in prettier printouts and less code ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
0 files changed, 0 insertions, 0 deletions