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.
*/
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
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,
3 matches
Mail list logo