From e0ba73ff48defd4b963444f9e88ab9a3a26085f7 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Fri, 7 Jan 2011 19:26:23 +0100 Subject: [PATCH] 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 9e0d67f0..16d7e87c 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 16ae3124..3ee76e07 100644 --- a/tools/gitg-shell.c +++ b/tools/gitg-shell.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -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;