summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-09 09:38:50 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-09 09:38:50 -0700
commita26719c5419754b24a16b7c8163d236eae765a6d (patch)
tree6c735fa8d100686cd06c679584c3632b41347b00 /dive.h
parentb0983d9d13d2d967d52a0fbbc1052f7f6eca840a (diff)
downloadsubsurface-a26719c5419754b24a16b7c8163d236eae765a6d.tar.gz
Picture handling: switch to stronger typed offset
Also change the on file XML to be even easier to read by making it a duration as well (which gets us '32:34 min' instead of un-typed seconds). This is backwards compatible, it will happily read what was written with the previous commit). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 23278d4a3..be99bffb2 100644
--- a/dive.h
+++ b/dive.h
@@ -289,7 +289,7 @@ struct dive {
/* picture list and methods related to dive picture handling */
struct picture {
char *filename;
- int32_t offset;
+ duration_t offset;
degrees_t latitude;
degrees_t longitude;
struct picture *next;