Git development
 help / color / mirror / Atom feed
* [RFC][PATCH 02/10] Sparse: fix some "using integer as NULL pointer" warnings
@ 2007-06-08 22:10 Ramsay Jones
  0 siblings, 0 replies; only message in thread
From: Ramsay Jones @ 2007-06-08 22:10 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: GIT Mailing-list


Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
 daemon.c     |   12 ++++++------
 fetch-pack.c |    2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/daemon.c b/daemon.c
index e74ecac..b79e905 100644
--- a/daemon.c
+++ b/daemon.c
@@ -60,12 +60,12 @@ static unsigned int init_timeout;
 #define INTERP_SLOT_PERCENT	(5)
 
 static struct interp interp_table[] = {
-	{ "%H", 0},
-	{ "%CH", 0},
-	{ "%IP", 0},
-	{ "%P", 0},
-	{ "%D", 0},
-	{ "%%", 0},
+	{ "%H" },
+	{ "%CH" },
+	{ "%IP" },
+	{ "%P" },
+	{ "%D" },
+	{ "%%" },
 };
 
 
diff --git a/fetch-pack.c b/fetch-pack.c
index 06f4aec..75649a6 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -642,7 +642,7 @@ static int remove_duplicates(int nr_heads, char **heads)
 			heads[dst] = heads[src];
 		dst++;
 	}
-	heads[dst] = 0;
+	heads[dst] = NULL;
 	return dst;
 }
 
-- 
1.5.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-09  3:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-08 22:10 [RFC][PATCH 02/10] Sparse: fix some "using integer as NULL pointer" warnings Ramsay Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox