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>
This commit is contained in:
Dirk Hohndel 2020-01-08 20:46:11 -08:00
parent cef30619d0
commit c81693d023
2 changed files with 20 additions and 19 deletions

View file

@ -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