[Xfce4-commits] [panel-plugins/xfce4-sensors-plugin] 01/05: renamed function arguments according to the beginning coding guidelines

noreply at xfce.org noreply at xfce.org
Sat Feb 4 11:16:04 CET 2017


This is an automated email from the git hooks/post-receive script.

timystery pushed a commit to branch master
in repository panel-plugins/xfce4-sensors-plugin.

commit 7456e67dc937a49374b3fd213b02f62b2ef9aab5
Author: Fabian <timystery at arcor.de>
Date:   Sun Mar 27 00:22:44 2016 +0100

    renamed function arguments according to the beginning coding guidelines
---
 src/actions.c | 12 ++++++------
 src/actions.h |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/actions.c b/src/actions.c
index 4efb26e..657fa43 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -45,7 +45,7 @@ refresh_sensor_data (t_sensors_dialog *sd);
 
 /* actual implementations */
 gboolean
-refresh_sensor_data (t_sensors_dialog *sd)
+refresh_sensor_data (t_sensors_dialog *ptr_sensors_dialog_structure)
 {
   t_sensors *sensors;
     int idx_chip, idx_feature, result;
@@ -56,9 +56,9 @@ refresh_sensor_data (t_sensors_dialog *sd)
     
     TRACE ("enters refresh_sensor_data");
 
-    g_return_val_if_fail (sd != NULL, FALSE);
+    g_return_val_if_fail (ptr_sensors_dialog_structure != NULL, FALSE);
 
-    sensors = sd->sensors;
+    sensors = ptr_sensors_dialog_structure->sensors;
 
     for (idx_chip=0; idx_chip < sensors->num_sensorchips; idx_chip++) {
         ptr_chip_structure = (t_chip *) g_ptr_array_index (sensors->chips, idx_chip);
@@ -102,7 +102,7 @@ refresh_sensor_data (t_sensors_dialog *sd)
 
 
 void
-refresh_tacho_view (t_sensors_dialog *sd)
+refresh_tacho_view (t_sensors_dialog *ptr_sensors_dialog_structure)
 {
     int idx_chip, idx_feature, row_tacho_table=0, col_tacho_table=0;
     t_sensors *ptr_sensors_structure;
@@ -113,9 +113,9 @@ refresh_tacho_view (t_sensors_dialog *sd)
 
     TRACE ("enters refresh_tacho_view");
 
-    g_return_if_fail (sd!=NULL);
+    g_return_if_fail (ptr_sensors_dialog_structure!=NULL);
 
-    ptr_sensors_structure = sd->sensors;
+    ptr_sensors_structure = ptr_sensors_dialog_structure->sensors;
 
     ptr_wdgt_table = ptr_sensors_structure->widget_sensors;
   
diff --git a/src/actions.h b/src/actions.h
index 9f74f97..7738e12 100644
--- a/src/actions.h
+++ b/src/actions.h
@@ -30,6 +30,6 @@
 #include <cpu.h>
 
 gboolean refresh_view (gpointer data);
-void refresh_tacho_view (t_sensors_dialog *sd);
+void refresh_tacho_view (t_sensors_dialog *ptr_sensors_dialog_structure);
 
 #endif /* ACTIONS_H */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list