diff options
Diffstat (limited to 'src/location-manual.c')
-rw-r--r-- | src/location-manual.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/location-manual.c b/src/location-manual.c index aeffa10..da34ea2 100644 --- a/src/location-manual.c +++ b/src/location-manual.c @@ -29,8 +29,8 @@ static int location_manual_init(struct location_state **state) { *state = emalloc(sizeof(**state)); - (*state)->loc.lat = NAN; - (*state)->loc.lon = NAN; + (*state)->loc.latitude = NAN; + (*state)->loc.longitude = NAN; return 0; } @@ -38,7 +38,7 @@ GCC_ONLY(__attribute__((__pure__))) static int location_manual_start(struct location_state *state) { - if (isnan(state->loc.lat) || isnan(state->loc.lon)) + if (isnan(state->loc.latitude) || isnan(state->loc.longitude)) eprintf(_("Latitude and longitude must be set.")); return 0; } @@ -80,9 +80,9 @@ location_manual_set_option(struct location_state *state, const char *key, const } if (!strcasecmp(key, "lat")) { - state->loc.lat = v; + state->loc.latitude = v; } else if (!strcasecmp(key, "lon")) { - state->loc.lon = v; + state->loc.longitude = v; } else { weprintf(_("Unknown method parameter: `%s'."), key); return -1; |