From: Alex Riesen Date: Mon, 05 Dec 2005 13:24:47 GMT Subject: Re: make gitfakemmap standalone to fix linking error in git.c Message-ID: <81b0412b0512050524w7b632651n93c836fda41a39d@mail.gmail.com> In-Reply-To: <81b0412b0512050519k5ed80035x9eb4907f569e0a4b@mail.gmail.com> The patch is to fix the error introduced by previous patch, which inverted condition of checking for the supported case (start must be NULL). On 12/5/05, Alex Riesen wrote: > The patch is to fix linking error because of gitfakemmap referencing > die living in usage.c, and git.c not linking in the file. Instead of > hardcoding usage.o in git.c prerequisites, I separated mmap from the > main sources. Why does it always happen... Subject: [PATCH] fix bug introduced by previous change Signed-off-by: Alex Riesen --- compat/mmap.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 58d38f03086fe30f3f758f2f27fde0ad05107b4a diff --git a/compat/mmap.c b/compat/mmap.c index 98cf3cb..cfa1f25 100644 --- a/compat/mmap.c +++ b/compat/mmap.c @@ -9,7 +9,7 @@ void *gitfakemmap(void *start, size_t le { int n = 0; - if (!start || !(flags & MAP_PRIVATE)) { + if (start || !(flags & MAP_PRIVATE)) { fprintf(stderr, "Invalid usage of gitfakemmap.\n"); exit(128); /* see die() in ../usage.c */ } -- 0.99.9.GIT