diff options
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | plugins/udisks2/udisks2-plugin.c | 19 |
3 files changed, 11 insertions, 16 deletions
@@ -1,6 +1,10 @@ +### mate-sensors-applet 1.28.0 + + * Translations update + ### mate-sensors-applet 1.27.0 - * tx: sync with transifex + * Translations update * tx: update resource * tx: migrate config file * ci: drop -Wunused-parameter compiler cflag from debian build diff --git a/configure.ac b/configure.ac index 203a70e..67851c2 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ # ================= initialization =================== # -AC_INIT([mate-sensors-applet], [1.27.0], [https://github.com/mate-desktop/mate-sensors-applet/issues], +AC_INIT([mate-sensors-applet], [1.28.0], [https://github.com/mate-desktop/mate-sensors-applet/issues], [mate-sensors-applet], [https://mate-desktop.org]) AC_CONFIG_SRCDIR([sensors-applet/main.c]) diff --git a/plugins/udisks2/udisks2-plugin.c b/plugins/udisks2/udisks2-plugin.c index 39d2d9a..7149bab 100644 --- a/plugins/udisks2/udisks2-plugin.c +++ b/plugins/udisks2/udisks2-plugin.c @@ -304,16 +304,15 @@ syslog(LOG_ERR, "propdict2 type: %s", g_variant_print(propdict2, TRUE)); #endif /* get data */ - gchar *id = NULL; - gchar *model = NULL; + const gchar *id = NULL; + const gchar *model = NULL; gboolean smartenabled; gdouble temp; - /* NULL, bc we don't care about the length of the string - * typecast bc g_variant_get_string() returns const char* */ - id = (gchar *) g_variant_get_string (g_variant_lookup_value (propdict, "Id", G_VARIANT_TYPE_STRING), NULL); - model = (gchar *) g_variant_get_string (g_variant_lookup_value (propdict, "Model", G_VARIANT_TYPE_STRING), NULL); + /* NULL, bc we don't care about the length of the string*/ + id = g_variant_get_string (g_variant_lookup_value (propdict, "Id", G_VARIANT_TYPE_STRING), NULL); + model = g_variant_get_string (g_variant_lookup_value (propdict, "Model", G_VARIANT_TYPE_STRING), NULL); smartenabled = g_variant_get_boolean (g_variant_lookup_value (propdict2, "SmartEnabled", G_VARIANT_TYPE_BOOLEAN)); temp = g_variant_get_double (g_variant_lookup_value (propdict2, "SmartTemperature", G_VARIANT_TYPE_DOUBLE)); @@ -366,14 +365,6 @@ syslog(LOG_ERR, "No temp data for device: %s\n", key); g_debug ("No temp data for device: %s\n", key); } - -#ifdef UD2PD -syslog(LOG_ERR, "b4 free1"); -#endif - - g_free (id); - g_free (model); - } #ifdef UD2PD |