diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-08 20:46:11 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-10 02:37:03 +0900 |
commit | c81693d02335fab14c364947b2e2df4e1327419e (patch) | |
tree | 6b02a7f669396abd58644590aed79a38500c688a /core/units.h | |
parent | cef30619d0d7296e1730d87dae1c9712ac5cd822 (diff) | |
download | subsurface-c81693d02335fab14c364947b2e2df4e1327419e.tar.gz |
code cleanup: consistently initialize zero duration_t
There were three different ways (two of which generated warnings) in a single
source file.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/units.h')
-rw-r--r-- | core/units.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/units.h b/core/units.h index da7bda0b2..95a9b0eb1 100644 --- a/core/units.h +++ b/core/units.h @@ -78,6 +78,8 @@ typedef struct int32_t seconds; // durations up to 34 yrs } duration_t; +static const duration_t zero_duration = { 0 }; + typedef struct { int32_t seconds; // offsets up to +/- 34 yrs |