aboutsummaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2015-10-03 10:29:40 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-03 10:41:03 -0400
commit769365b4db6b1beeeb1e86d106cf2ffead975747 (patch)
tree534b5bf41212d950a1d7bd1d1c94b6e92ec96e0f /dive.c
parent08db242e0e5855a4673e4caf9549bed78012737c (diff)
downloadsubsurface-769365b4db6b1beeeb1e86d106cf2ffead975747.tar.gz
Clean up Divesoft Freedome time parsing
So Anton Lundin says that the 32-bit timestamp for the Divesoft Freedom is indeed a signed offset from Jan 1, 2000. This does that, but also extracts the whole thing into a helper function and makes sure that there are no overflows at any point by using "timestamp_t" in the whole series, and all the operations are "obviously safe" in their types (ie no "unsigned char gets widened to 'int' and then we shift it left by 24 bits"). Signed-off-by: Linus Torvalds <torvalds@linux-fundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
0 files changed, 0 insertions, 0 deletions