diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-08 20:55:29 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-10 02:37:03 +0900 |
commit | 70cabb968c481e566e8249465f153e05e6dc0347 (patch) | |
tree | 7b2af4fb86ed467f99250ddaaf091a7da9f22e9a /core/units.h | |
parent | 247194e839cec81304734861db8e8e6e381a5483 (diff) | |
download | subsurface-70cabb968c481e566e8249465f153e05e6dc0347.tar.gz |
code cleanup: use explicit zero_location
Again, several different ways to achieve the same thing.
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 95a9b0eb1..ff34991f7 100644 --- a/core/units.h +++ b/core/units.h @@ -139,6 +139,8 @@ typedef struct pos { degrees_t lat, lon; } location_t; +static const location_t zero_location = { { 0 }, { 0 }}; + extern void parse_location(const char *, location_t *); static inline bool has_location(const location_t *loc) |