[PATCH 03/14] Fix missing return values and typecast.



---
 libyelp/yelp-docbook-document.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/libyelp/yelp-docbook-document.c b/libyelp/yelp-docbook-document.c
index b6a1d90..9863574 100644
--- a/libyelp/yelp-docbook-document.c
+++ b/libyelp/yelp-docbook-document.c
@@ -242,7 +242,7 @@ docbook_request_page (YelpDocument         *document,
                                                                                 callback,
                                                                                 user_data);
     if (handled) {
-        return;
+        return TRUE;
     }
 
     g_mutex_lock (priv->mutex);
@@ -272,6 +272,8 @@ docbook_request_page (YelpDocument         *document,
     }
 
     g_mutex_unlock (priv->mutex);
+
+    return FALSE;
 }
 
 /******************************************************************************/
@@ -356,7 +358,7 @@ docbook_process (YelpDocbookDocument *docbook)
         id = xmlGetNsProp (priv->xmlcur, XML_XML_NAMESPACE, BAD_CAST "id");
 
     if (id) {
-        priv->root_id = g_strdup (id);
+        priv->root_id = g_strdup ((const gchar*)id);
         yelp_document_set_page_id (document, NULL, (gchar *) id);
         yelp_document_set_page_id (document, "//index", (gchar *) id);
         yelp_document_set_prev_id (document, (gchar *) id, "//about");
-- 
1.7.2.3




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