[gcalctool] Tidy up warnings



commit 34abe6fcfe58892a73cb07e78b9bd7f1cb6da871
Author: Robert Ancell <robert ancell gmail com>
Date:   Tue Jun 8 15:07:35 2010 +1000

    Tidy up warnings

 src/currency.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/currency.c b/src/currency.c
index 72d5844..1900a58 100644
--- a/src/currency.c
+++ b/src/currency.c
@@ -81,9 +81,8 @@ download_cb(GObject *object, GAsyncResult *result, gpointer user_data)
 
     if (g_file_copy_finish(G_FILE(object), result, &error))
         g_debug("Rates updated");
-
-    if (error != NULL)
-        g_warning("Couldn't download currency file: %s\n", error->message);
+    else
+        g_warning("Couldn't download currency file: %s", error->message);
     g_clear_error(&error);
     downloading_rates = FALSE;
 }
@@ -96,8 +95,8 @@ currency_download_rates()
     GFile *source, *dest;
 
     downloading_rates = TRUE;
-    g_debug("Downloading rates");
-   
+    g_debug("Downloading rates...");
+
     filename = get_rate_filepath();
     directory = g_path_get_dirname(filename);
     g_mkdir_with_parents(directory, 0755);



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