diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2018-05-18 08:13:53 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2018-05-18 08:13:53 -0700 |
commit | 28c2090f37f0b230ce786b85f281648afcceb8f5 (patch) | |
tree | 6ca5ee5e4f9064669a47ef3751bf33037a153344 /includes/info.h | |
parent | 6dfda529f4bde07cdda52a62c30eeda4cdd9eb17 (diff) |
Fix compiler warnings generated with GCC 8
Diffstat (limited to 'includes/info.h')
-rw-r--r-- | includes/info.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |