[Xfce4-commits] <xfce4-weather-plugin:master> Fix some more compilation warnings.

Harald Judt noreply at xfce.org
Mon Jul 16 16:16:01 CEST 2012


Updating branch refs/heads/master
         to 46fe74aec7fe45a331424d86aee411b087094382 (commit)
       from 1cb468a8da53cb08e5c2d2f317f25aac12d48cbd (commit)

commit 46fe74aec7fe45a331424d86aee411b087094382
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Jul 16 16:13:22 2012 +0200

    Fix some more compilation warnings.

 panel-plugin/weather-data.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/weather-data.c b/panel-plugin/weather-data.c
index 5268534..f26d56a 100644
--- a/panel-plugin/weather-data.c
+++ b/panel-plugin/weather-data.c
@@ -64,11 +64,11 @@ get_data (xml_time *timeslice, unit_systems unit_system, datas type)
 	case TEMPERATURE:
 		val = g_ascii_strtod(loc->temperature_value, NULL);
 		if (unit_system == IMPERIAL
-			&& (strcmp(loc->temperature_unit, "celcius") == 0
-				|| strcmp(loc->temperature_unit, "celsius" == 0)))
+			&& (! strcmp(loc->temperature_unit, "celcius")
+				|| ! strcmp(loc->temperature_unit, "celsius")))
 			val = val * 9.0 / 5.0 + 32.0;
 		else if (unit_system == METRIC
-				 && strcmp(loc->temperature_unit, "fahrenheit") == 0)
+				 && ! strcmp(loc->temperature_unit, "fahrenheit"))
 			val = (val - 32.0) * 5.0 / 9.0;
 		return g_strdup_printf ("%.1f", val);
 	case PRESSURE:


More information about the Xfce4-commits mailing list