Sparse: fix some "using integer as NULL pointer" warnings
RFC PATCH 2/10 Sparse: fix some "using integer as NULL pointer" warnings
Signed-off-by Ramsay Jones <[email protected]>
--- daemon.c | 12 ++++++------ fetch-pack.c | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-)
daemon.c +6 -6
@@ -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" }, + {"%%" }, };
fetch-pack.c +1 -1
@@ -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; }
Signature · 1 line
1.5.2