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/remote.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/remote.c')
| -rw-r--r-- | src/remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote.c b/src/remote.c index d54d8c7d8..74c5afad5 100644 --- a/src/remote.c +++ b/src/remote.c @@ -93,7 +93,7 @@ int git_remote_get(git_remote **out, git_config *cfg, const char *name) } /* "fetch" is the longest var name we're interested in */ - buf_len = STRLEN("remote.") + STRLEN(".fetch") + strlen(name) + 1; + buf_len = strlen("remote.") + strlen(".fetch") + strlen(name) + 1; buf = git__malloc(buf_len); if (buf == NULL) { error = GIT_ENOMEM; |
