diff options
author | Mattias Andrée <m@maandree.se> | 2025-03-08 15:59:45 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-03-08 15:59:45 +0100 |
commit | d937713c424a6cb1a365a1ade214c97ab5f7f357 (patch) | |
tree | 3af203319480c426c599be5e2c3f83bdb13f24eb /src/location-manual.c | |
parent | minor misc improvements (diff) | |
download | redshift-ng-d937713c424a6cb1a365a1ade214c97ab5f7f357.tar.gz redshift-ng-d937713c424a6cb1a365a1ade214c97ab5f7f357.tar.bz2 redshift-ng-d937713c424a6cb1a365a1ade214c97ab5f7f357.tar.xz |
.lat{ => itude}, .lon{ => gitude}
Signed-off-by: Mattias Andrée <m@maandree.se>
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; |