aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-gnome-clock.c
diff options
context:
space:
mode:
authorJon Lund Steffensen <jonlst@gmail.com>2011-10-18 18:02:28 +0200
committerJon Lund Steffensen <jonlst@gmail.com>2011-10-18 18:02:28 +0200
commit802d09e83bb6ffa0a70b702f59069435d6feb8c6 (patch)
tree3e0a128b3c968339de55c4a724ae52c319a75d77 /src/location-gnome-clock.c
parentSet buffering on stdout and stderr to line-buffered. (diff)
downloadredshift-ng-802d09e83bb6ffa0a70b702f59069435d6feb8c6.tar.gz
redshift-ng-802d09e83bb6ffa0a70b702f59069435d6feb8c6.tar.bz2
redshift-ng-802d09e83bb6ffa0a70b702f59069435d6feb8c6.tar.xz
Add various documentation updates: DESIGN and HACKING document, and various small comments int the source (Christian Jaeger).
Update man page with information on configuration file.
Diffstat (limited to 'src/location-gnome-clock.c')
-rw-r--r--src/location-gnome-clock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/location-gnome-clock.c b/src/location-gnome-clock.c
index 2bb1949..f68af2f 100644
--- a/src/location-gnome-clock.c
+++ b/src/location-gnome-clock.c
@@ -156,7 +156,9 @@ location_gnome_clock_init(location_gnome_clock_state_t *state)
char *lat_str = strstr(current_city, "latitude=\"");
char *lon_str = strstr(current_city, "longitude=\"");
if (lat_str == NULL || lon_str == NULL) {
- fputs(_("Location not specified for city.\n"), stderr);
+ fprintf(stderr,
+ _("Location not specified for city `%s'.\n"),
+ current_city);
g_free(current_city);
return -1;
}