From 932669b8655851cc18ca109e78dfe8d71c0b31c0 Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Thu, 25 Aug 2011 14:22:57 +0300 Subject: Drop STRLEN() macros There is no need in STRLEN macros. Compilers can do this trivial optimization on its own. Signed-off-by: Kirill A. Shutemov --- src/commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commit.c') diff --git a/src/commit.c b/src/commit.c index 00e18b832..dc9e5362a 100644 --- a/src/commit.c +++ b/src/commit.c @@ -225,7 +225,7 @@ int commit_parse_buffer(git_commit *commit, const void *data, size_t len) if (git__prefixcmp(buffer, "encoding ") == 0) { const char *encoding_end; - buffer += STRLEN("encoding "); + buffer += strlen("encoding "); encoding_end = buffer; while (encoding_end < buffer_end && *encoding_end != '\n') -- cgit v1.2.1