From 28c2090f37f0b230ce786b85f281648afcceb8f5 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Fri, 18 May 2018 08:13:53 -0700 Subject: Fix compiler warnings generated with GCC 8 --- includes/info.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/info.h b/includes/info.h index 253c06e0..a665f0a3 100644 --- a/includes/info.h +++ b/includes/info.h @@ -45,7 +45,7 @@ struct InfoGroup { struct InfoField { const gchar *name; - gchar *value; + const gchar *value; int update_interval; @@ -57,7 +57,7 @@ struct Info *info_new(void); void info_add_group(struct Info *info, const gchar *group_name, ...); void info_add_computed_group(struct Info *info, const gchar *name, const gchar *value); -struct InfoField info_field(const gchar *name, gchar *value); +struct InfoField info_field(const gchar *name, const gchar *value); struct InfoField info_field_printf(const gchar *name, const gchar *format, ...) __attribute__((format(printf, 2, 3))); struct InfoField info_field_update(const gchar *name, int update_interval); -- cgit v1.2.3