From fe7c0b30856d1286ea9a521ca9fb01e4952b6275 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 21 Sep 2019 14:03:34 +0200 Subject: Cleanup: make location argument to put_location() const Since this is an output function, the pointed-to value is not modified. Signed-off-by: Berthold Stoeger --- core/membuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/membuffer.c') diff --git a/core/membuffer.c b/core/membuffer.c index 71832a428..548b70d45 100644 --- a/core/membuffer.c +++ b/core/membuffer.c @@ -218,7 +218,7 @@ void put_degrees(struct membuffer *b, degrees_t value, const char *pre, const ch put_format(b, "%s%s%u.%06u%s", pre, sign, FRACTION(udeg, 1000000), post); } -void put_location(struct membuffer *b, location_t *loc, const char *pre, const char *post) +void put_location(struct membuffer *b, const location_t *loc, const char *pre, const char *post) { if (has_location(loc)) { put_degrees(b, loc->lat, pre, " "); -- cgit v1.2.3-70-g09d2