[Goodies-commits] r5955 - in xfce4-sensors-plugin/trunk: lib panel-plugin src

Fabian Nowak timystery at xfce.org
Tue Nov 4 02:01:35 CET 2008


Author: timystery
Date: 2008-11-04 01:01:35 +0000 (Tue, 04 Nov 2008)
New Revision: 5955

Modified:
   xfce4-sensors-plugin/trunk/lib/acpi.c
   xfce4-sensors-plugin/trunk/panel-plugin/sensors-plugin.c
   xfce4-sensors-plugin/trunk/src/interface.c
Log:
compiled for maintainermode and debug


Modified: xfce4-sensors-plugin/trunk/lib/acpi.c
===================================================================
--- xfce4-sensors-plugin/trunk/lib/acpi.c	2008-11-04 00:53:03 UTC (rev 5954)
+++ xfce4-sensors-plugin/trunk/lib/acpi.c	2008-11-04 01:01:35 UTC (rev 5955)
@@ -65,7 +65,7 @@
 static void cut_newline (char *buf)
 {
     int i;
-    char *p;
+    //char *p;
 
     for (i=0; buf[i]!='\0'; i++)
     {
@@ -253,7 +253,7 @@
 #endif
     char buf[1024];
     struct dirent *de;
-    t_chipfeature *chipfeature;
+    t_chipfeature *chipfeature = NULL;
 
     TRACE ("enters read_battery_zone");
 
@@ -307,6 +307,7 @@
 #ifdef HAVE_SYSFS_ACPI
                     fclose (file);
                 }
+                g_free (filename);
                 filename = g_strdup_printf ("/sys/class/power_supply/%s/energy_now", de->d_name);
                 file = fopen (filename, "r");
                 if (file) {
@@ -318,6 +319,7 @@
                     }
                     fclose (file);
                 }
+                g_free (filename);
                 filename = g_strdup_printf ("/sys/class/power_supply/%s/alarm", de->d_name);
                 file = fopen (filename, "r");
                 if (file) {

Modified: xfce4-sensors-plugin/trunk/panel-plugin/sensors-plugin.c
===================================================================
--- xfce4-sensors-plugin/trunk/panel-plugin/sensors-plugin.c	2008-11-04 00:53:03 UTC (rev 5954)
+++ xfce4-sensors-plugin/trunk/panel-plugin/sensors-plugin.c	2008-11-04 01:01:35 UTC (rev 5955)
@@ -1776,7 +1776,7 @@
 static void
 sensors_create_options (XfcePanelPlugin *plugin, t_sensors *sensors)
 {
-    GtkWidget *dlg, *header, *vbox, *notebook;
+    GtkWidget *dlg, *vbox, *notebook;
     t_sensors_dialog *sd;
     gchar *myToolTipText;
 

Modified: xfce4-sensors-plugin/trunk/src/interface.c
===================================================================
--- xfce4-sensors-plugin/trunk/src/interface.c	2008-11-04 00:53:03 UTC (rev 5954)
+++ xfce4-sensors-plugin/trunk/src/interface.c	2008-11-04 01:01:35 UTC (rev 5955)
@@ -39,7 +39,7 @@
 create_main_window (t_sensors_dialog *sd)
 {
 
-    GtkWidget *dlg, *header, *vbox, *notebook;
+    GtkWidget *dlg, *vbox;
 
 
     /* start and populate */




More information about the Goodies-commits mailing list