packages: xsensors/xsensors-remove-unused-variables.patch (NEW)=?UTF-8?Q?=20?=- new - tak...

blekot blekot at pld-linux.org
Sun May 27 22:35:15 CEST 2012


Author: blekot                       Date: Sun May 27 20:35:15 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new
- taken from debian
- Remove declared, but unused variables

---- Files affected:
packages/xsensors:
   xsensors-remove-unused-variables.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/xsensors/xsensors-remove-unused-variables.patch
diff -u /dev/null packages/xsensors/xsensors-remove-unused-variables.patch:1.1
--- /dev/null	Sun May 27 22:35:15 2012
+++ packages/xsensors/xsensors-remove-unused-variables.patch	Sun May 27 22:35:10 2012
@@ -0,0 +1,34 @@
+--- a/src/gui.c
++++ b/src/gui.c
+@@ -257,10 +257,9 @@
+ 
+ /* Start the sensor info update timer. */
+ gint start_timer( GtkWidget *widget, gpointer data ) {
+-    gint timer;
+ 
+     /* Setup timer for updates. */
+-    timer = g_timeout_add( update_time * 1000, 
++    g_timeout_add( update_time * 1000,
+                              (GtkFunction) update_sensor_data, 
+ 			     (gpointer) data );
+ 
+@@ -287,7 +286,7 @@
+ 
+     /* feature data */
+     updates *head = NULL;
+-    updates *current = NULL, *prev = NULL;
++    updates *current = NULL;
+ 
+     const sensors_feature *feature;
+ 
+@@ -347,10 +346,8 @@
+             new_node->pbar = featpbar;
+ 
+             if ( head == NULL ) {
+-                prev = head;
+                 head = current = new_node;
+             } else {
+-                prev = current;
+                 current = current->next = new_node;
+             }
+ 
================================================================


More information about the pld-cvs-commit mailing list