[gitg] Fix various warnings



commit e0ba73ff48defd4b963444f9e88ab9a3a26085f7
Author: Vincent Untz <vuntz gnome org>
Date:   Fri Jan 7 19:26:23 2011 +0100

    Fix various warnings
    
    Missing header, usage of the wrong variable, and bad function signature.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=638930

 tests/shell.c      |    2 +-
 tools/gitg-shell.c |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/shell.c b/tests/shell.c
index 9e0d67f..16d7e87 100644
--- a/tests/shell.c
+++ b/tests/shell.c
@@ -8,7 +8,7 @@ typedef struct
 	GitgRepository *repository;
 } RepositoryInfo;
 
-static gboolean
+static void
 remove_all (gchar const *path,
             GError      **error)
 {
diff --git a/tools/gitg-shell.c b/tools/gitg-shell.c
index 16ae312..3ee76e0 100644
--- a/tools/gitg-shell.c
+++ b/tools/gitg-shell.c
@@ -1,4 +1,5 @@
 #include <glib.h>
+#include <string.h>
 #include <stdlib.h>
 #include <libgitg/gitg-shell.h>
 #include <gio/gunixinputstream.h>
@@ -96,7 +97,7 @@ main (int argc, char *argv[])
 
 	gitg_debug_init ();
 
-	if (i == 1)
+	if (argc == 1)
 	{
 		g_print ("Please specify a command...\n");
 		return 1;



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