summaryrefslogtreecommitdiff
path: root/applets/clock/system-timezone.c
diff options
context:
space:
mode:
authorSorokin Alexei <[email protected]>2016-02-16 03:09:46 +0300
committerWolfgang Ulbrich <[email protected]>2016-02-21 11:51:49 +0100
commita0a59122dab148294f199aeb8e9a85901793c435 (patch)
tree5f7bb8e68a7cfdfc7051cfad5b0702de0f5748c6 /applets/clock/system-timezone.c
parent44a6c2f7e478fce00cc987bb76ac519704c13da2 (diff)
downloadmate-panel-a0a59122dab148294f199aeb8e9a85901793c435.tar.bz2
mate-panel-a0a59122dab148294f199aeb8e9a85901793c435.tar.xz
fix some warnings
Diffstat (limited to 'applets/clock/system-timezone.c')
-rw-r--r--applets/clock/system-timezone.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/applets/clock/system-timezone.c b/applets/clock/system-timezone.c
index b736ffee..d3745e3d 100644
--- a/applets/clock/system-timezone.c
+++ b/applets/clock/system-timezone.c
@@ -877,7 +877,6 @@ system_timezone_is_zone_file_valid (const char *zone_file,
{
GError *our_error;
GIOChannel *channel;
- GIOStatus status;
char buffer[strlen (TZ_MAGIC)];
gsize read;
@@ -904,9 +903,9 @@ system_timezone_is_zone_file_valid (const char *zone_file,
our_error = NULL;
channel = g_io_channel_new_file (zone_file, "r", &our_error);
if (!our_error)
- status = g_io_channel_read_chars (channel,
- buffer, strlen (TZ_MAGIC),
- &read, &our_error);
+ g_io_channel_read_chars (channel,
+ buffer, strlen (TZ_MAGIC),
+ &read, &our_error);
if (channel)
g_io_channel_unref (channel);