[gnome-calendar/gnome-3-16] utils: squash compilation warning



commit f8db015e2cc7e586a77c8d7721d5130ee35c953e
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Tue Jun 2 23:54:41 2015 -0400

    utils: squash compilation warning

 src/gcal-utils.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-utils.c b/src/gcal-utils.c
index 741d4a8..c5ad02e 100644
--- a/src/gcal-utils.c
+++ b/src/gcal-utils.c
@@ -425,11 +425,8 @@ icaltime_compare_with_current (const icaltimetype *date1,
   diff1 = start1 - *current_time_t;
   diff2 = start2 - *current_time_t;
 
-  if (diff1 == diff2)
-    {
-      result = 0;
-    }
-  else
+  result = 0;
+  if (diff1 != diff2)
     {
       if (diff1 == 0)
         result = -1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]