diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-09-20 21:30:18 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-01-17 09:15:50 -0800 |
commit | e1ee577c4fc693a4cfe948ab5ae02ab1af44edfa (patch) | |
tree | 83f53d98322917d3b156154640f039bc73f3a661 /core/dive.c | |
parent | fe5f15bdc53da12f1bed1a67e2f566746ba1d127 (diff) | |
download | subsurface-e1ee577c4fc693a4cfe948ab5ae02ab1af44edfa.tar.gz |
Make event string translation when downloading from libdivecomputer more obvious
We had hardcoded the exact translation of the event numbers. They
haven't changed (although we did have what appears to be a spurious
entry for "non stop time" at the end that libdivecomputer doesn't have
an enum for).
Instead, use an explicit array index initializer array, so that it's
obvious that the two match up (and if the sample event numbers ever
change, we should cope with it gracefully).
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'core/dive.c')
0 files changed, 0 insertions, 0 deletions