[gnome-panel] clock: fix constness warnings in system-timezone.c



commit 076db95d858737b7f1d75aa7178f6db3615e0211
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Oct 30 19:45:28 2016 +0200

    clock: fix constness warnings in system-timezone.c

 applets/clock/system-timezone.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/applets/clock/system-timezone.c b/applets/clock/system-timezone.c
index 6e937e2..0b1a459 100644
--- a/applets/clock/system-timezone.c
+++ b/applets/clock/system-timezone.c
@@ -62,7 +62,7 @@
 #define ETC_CONF_D_CLOCK    "/etc/conf.d/clock"
 #define ETC_LOCALTIME       "/etc/localtime"
 
-static char *files_to_check[CHECK_NB] = {
+static const gchar *files_to_check[CHECK_NB] = {
         ETC_TIMEZONE,
         ETC_TIMEZONE_MAJ,
         ETC_SYSCONFIG_CLOCK,
@@ -496,7 +496,7 @@ static char *
 recursive_compare (struct stat  *localtime_stat,
                    const char   *localtime_content,
                    gsize         localtime_content_len,
-                   char         *file,
+                   const gchar  *file,
                    CompareFiles  compare_func)
 {
         struct stat file_stat;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]