Fix implicit function declarations. Use g_ascii_strcasecmp() instead of
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 29 Oct 2007 15:41:35 +0000 (15:41 +0000)
committerMatthew Barnes <mbarnes@src.gnome.org>
Mon, 29 Oct 2007 15:41:35 +0000 (15:41 +0000)
2007-10-29  Matthew Barnes  <mbarnes@redhat.com>

* servers/google/libgdata/gdata-entry.c:
* servers/googgle/libgdata-google/gdata-google-service.c:
Fix implicit function declarations.
Use g_ascii_strcasecmp() instead of g_strcasecmp() (deprecated).

svn path=/trunk/; revision=8167

ChangeLog
servers/google/libgdata-google/gdata-google-service.c
servers/google/libgdata/gdata-entry.c

index 927bb13..1ebb73e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-10-29  Matthew Barnes  <mbarnes@redhat.com>
+
+       * servers/google/libgdata/gdata-entry.c:
+       * servers/googgle/libgdata-google/gdata-google-service.c:
+       Fix implicit function declarations.
+       Use g_ascii_strcasecmp() instead of g_strcasecmp() (deprecated).
+
 2007-10-26  Matthew Barnes  <mbarnes@redhat.com>
 
        * docs/reference/calendar/libecal/libecal-sections.txt:
index ffd0e7f..95a8ca3 100644 (file)
@@ -183,7 +183,7 @@ gdata_google_service_get_feed (GDataService *service, const gchar *feed_url)
 
        if (!service_is_authenticated( GDATA_GOOGLE_SERVICE(service) )) {
                status = service_authenticate(GDATA_GOOGLE_SERVICE(service));
-               if (g_strcasecmp(status, "SUCCESS")) {
+               if (g_ascii_strcasecmp(status, "SUCCESS")) {
                        return NULL;
                }
        }
@@ -235,7 +235,7 @@ gdata_google_service_insert_entry (GDataService *service, const gchar *feed_url,
        if (!service_is_authenticated(GDATA_GOOGLE_SERVICE(service))) {
                status = service_authenticate(GDATA_GOOGLE_SERVICE(service));
 
-               if (g_strcasecmp(status,"SUCCESS"))
+               if (g_ascii_strcasecmp(status,"SUCCESS"))
                        return NULL;
        }
 
@@ -305,7 +305,7 @@ gdata_google_service_delete_entry (GDataService *service, GDataEntry *entry)
 
        if (!service_is_authenticated (GDATA_GOOGLE_SERVICE(service))) {
                status = (xmlChar *)service_authenticate (GDATA_GOOGLE_SERVICE(service));
-               if (g_strcasecmp((gchar *)status, "SUCCESS")) 
+               if (g_ascii_strcasecmp((gchar *)status, "SUCCESS")) 
                        return ;
        }
        
@@ -350,7 +350,7 @@ gdata_google_service_update_entry (GDataService *service, GDataEntry *entry)
        
        if (!service_is_authenticated (GDATA_GOOGLE_SERVICE (service))) {
                status = service_authenticate (GDATA_GOOGLE_SERVICE (service));
-               if (g_strcasecmp (status, "SUCCESS"))
+               if (g_ascii_strcasecmp (status, "SUCCESS"))
                        return;
        }
 
@@ -410,7 +410,7 @@ gdata_google_service_update_entry_with_link (GDataService *service, GDataEntry *
        
        if (!service_is_authenticated (GDATA_GOOGLE_SERVICE(service))) {
                status = service_authenticate (GDATA_GOOGLE_SERVICE(service));
-               if (g_strcasecmp (status, "SUCCESS"))
+               if (g_ascii_strcasecmp (status, "SUCCESS"))
                        return;
        }
 
index 69f1d49..ca8b866 100644 (file)
@@ -31,6 +31,7 @@
 #include <libxml/xpath.h>  
 #include <libxml/xpathInternals.h>
 
+#include <string.h>
 #include <gdata-entry.h>
 
 #define GDATA_ENTRY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GDATA_TYPE_ENTRY, GDataEntryPrivate))
@@ -812,7 +813,7 @@ build_hash_table_entries (gchar *key, gchar *value, xmlNode **cur)
 
                if (ptr->next == NULL) {
                        /* FIXME: Will we be needing , these nodes of entries when building them ? */
-                       if (!g_strcasecmp (key, "published") || !g_strcasecmp (key, "id") || !g_strcasecmp (key, "updated"))
+                       if (!g_ascii_strcasecmp (key, "published") || !g_ascii_strcasecmp (key, "id") || !g_ascii_strcasecmp (key, "updated"))
                                break;
 
                        ptr->next = xmlNewNode (NULL, (xmlChar *)key);
@@ -1081,7 +1082,7 @@ gdata_entry_get_edit_link (GDataEntry *entry)
 
        while (list) {
                link = list->data;
-               if (!g_strcasecmp (link->rel, "edit")) {
+               if (!g_ascii_strcasecmp (link->rel, "edit")) {
                        edit_link = g_strdup(link->href);
                }
                list = g_slist_next (list);