summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-05-05 01:20:27 +0300
committerVicent Marti <tanoku@gmail.com>2011-05-09 21:58:02 +0300
commit3f53c97113deb986b58aac8bb89f76b47e76507b (patch)
tree07035e51be600f40b6644343ff6ac246bab2bd02 /src/common.h
parent02f9e637a1d282d03ce3362e7c3467e73c87bf2e (diff)
downloadlibgit2-3f53c97113deb986b58aac8bb89f76b47e76507b.tar.gz
errors: Set error messages on memory allocation
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index b3f5253a9..351d6696f 100644
--- a/src/common.h
+++ b/src/common.h
@@ -50,12 +50,12 @@ typedef SSIZE_T ssize_t;
#include "git2/common.h"
#include "git2/types.h"
-#include "util.h"
#include "thread-utils.h"
#include "bswap.h"
#define GIT_PATH_MAX 4096
-
extern int git__error(int error, const char *, ...) GIT_FORMAT_PRINTF(2, 3);
+#include "util.h"
+
#endif /* INCLUDE_common_h__ */