From 70cabb968c481e566e8249465f153e05e6dc0347 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 8 Jan 2020 20:55:29 -0800 Subject: code cleanup: use explicit zero_location Again, several different ways to achieve the same thing. Signed-off-by: Dirk Hohndel --- core/units.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') 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) -- cgit v1.2.3-70-g09d2