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/odb_pack.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/odb_pack.c')
-rw-r--r-- | src/odb_pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c index fc2408e76..5b2be58e1 100644 --- a/src/odb_pack.c +++ b/src/odb_pack.c @@ -237,7 +237,7 @@ static int packfile_load__cb(void *_data, char *path) for (i = 0; i < backend->packs.length; ++i) { struct git_pack_file *p = git_vector_get(&backend->packs, i); - if (memcmp(p->pack_name, path, strlen(path) - STRLEN(".idx")) == 0) + if (memcmp(p->pack_name, path, strlen(path) - strlen(".idx")) == 0) return GIT_SUCCESS; } |