Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2011-08-25 15:22:57 +0400
committerKirill A. Shutemov <kirill@shutemov.name>2011-08-25 17:41:15 +0400
commit932669b8655851cc18ca109e78dfe8d71c0b31c0 (patch)
tree2a0cdabf777d541ffcaee30d57d2071dff406a1d /src/commit.c
parenta7e34e3c854aaed77ede8558ff253716bc4c80a2 (diff)
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 <kirill@shutemov.name>
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c2
1 files changed, 1 insertions, 1 deletions
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')