[yelp] Minor style fixes.



commit d006a0c00fc421e7794f85b9aac9a7d8e13e101e
Author: Rupert Swarbrick <rswarbrick gmail com>
Date:   Fri Dec 17 08:44:58 2010 +0000

    Minor style fixes.
    
    Removes an unused variable and adds two required headers.

 libyelp/yelp-uri.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libyelp/yelp-uri.c b/libyelp/yelp-uri.c
index a5791dd..b7b5534 100644
--- a/libyelp/yelp-uri.c
+++ b/libyelp/yelp-uri.c
@@ -25,12 +25,14 @@
 #endif
 
 #include <string.h>
+#include <stdio.h>
 
 #include <glib.h>
 #include <gio/gio.h>
 
 #include "yelp-uri.h"
 #include "yelp-debug.h"
+#include "yelp-settings.h"
 
 static void           yelp_uri_class_init        (YelpUriClass   *klass);
 static void           yelp_uri_init              (YelpUri        *uri);
@@ -558,7 +560,7 @@ resolve_data_dirs (YelpUri      *ret,
     gchar *filename = NULL;
     gchar **searchpath = NULL;
     gint searchi, searchmax;
-    gint datadir_i, subdir_i, lang_i;
+    gint datadir_i, lang_i;
 
     datadirs = g_new0 (gchar *, g_strv_length ((gchar **) sdatadirs) + 2);
     datadirs[0] = (gchar *) g_get_user_data_dir ();



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