summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-08-28 06:05:50 -0700
committerVicent Martí <vicent@github.com>2013-08-28 06:05:50 -0700
commit1ef05e3f0ea8fa8db2167307101c8c43d1c1784b (patch)
tree0eb68083767ea2fe111099418d2dc280b2f94d49 /src/util.h
parentd07cc8a2f7a197bd1b09092467212697995ff9a3 (diff)
parentaec87f712fd1e84038d5d14b83a97d78e2e1b1ad (diff)
downloadlibgit2-1ef05e3f0ea8fa8db2167307101c8c43d1c1784b.tar.gz
Merge pull request #1803 from libgit2/ntk/topic/even_more_lenient_remote_parsing
Even more lenient remote parsing
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index a784390c1..bd93b46b5 100644
--- a/src/util.h
+++ b/src/util.h
@@ -82,7 +82,10 @@ GIT_INLINE(void *) git__realloc(void *ptr, size_t size)
return new_ptr;
}
-#define git__free(ptr) free(ptr)
+GIT_INLINE(void) git__free(void *ptr)
+{
+ free(ptr);
+}
#define STRCMP_CASESELECT(IGNORE_CASE, STR1, STR2) \
((IGNORE_CASE) ? strcasecmp((STR1), (STR2)) : strcmp((STR1), (STR2)))