Re: [PATCH 2/3] tree-walk: simplify via strnncmp()

2014-06-17 Thread Jeremiah Mahler
Jonathan, On Mon, Jun 16, 2014 at 01:18:06PM -0700, Jonathan Nieder wrote: Jeremiah Mahler wrote: --- a/tree-walk.c +++ b/tree-walk.c [...] @@ -174,7 +164,7 @@ static int check_entry_match(const char *a, int a_len, const char *b, int b_len) * scanning further. */

[PATCH 2/3] tree-walk: simplify via strnncmp()

2014-06-16 Thread Jeremiah Mahler
Simplify tree-walk.c using the strnncmp() function and remove the name_compare() function. Signed-off-by: Jeremiah Mahler jmmah...@gmail.com --- tree-walk.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/tree-walk.c b/tree-walk.c index 4dc86c7..efbd3b7

Re: [PATCH 2/3] tree-walk: simplify via strnncmp()

2014-06-16 Thread Jonathan Nieder
Jeremiah Mahler wrote: --- a/tree-walk.c +++ b/tree-walk.c [...] @@ -174,7 +164,7 @@ static int check_entry_match(const char *a, int a_len, const char *b, int b_len) * scanning further. */ - int cmp = name_compare(a, a_len, b, b_len); + int cmp = strnncmp(a,