diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-08-25 14:22:57 +0300 |
---|---|---|
committer | Kirill A. Shutemov <kirill@shutemov.name> | 2011-08-25 16:41:15 +0300 |
commit | 932669b8655851cc18ca109e78dfe8d71c0b31c0 (patch) | |
tree | 2a0cdabf777d541ffcaee30d57d2071dff406a1d /src/commit.c | |
parent | a7e34e3c854aaed77ede8558ff253716bc4c80a2 (diff) | |
download | libgit2-932669b8655851cc18ca109e78dfe8d71c0b31c0.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c index 00e18b83..dc9e5362 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') |