summaryrefslogtreecommitdiff
path: root/tests/test_helpers.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-03 22:22:10 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-06 01:14:15 +0200
commitd12299fe22e549a20e632668fdbe13cab9def9df (patch)
tree9d70b6bc154e776c49eaaddd9a66eb97aebab661 /tests/test_helpers.c
parent7d7cd8857a451ff50b126e452bcbdc0fb397db35 (diff)
downloadlibgit2-d12299fe22e549a20e632668fdbe13cab9def9df.tar.gz
Change include structure for the project
The maze with include dependencies has been fixed. There is now a global include: #include <git.h> The git_odb_backend API has been exposed. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'tests/test_helpers.c')
-rw-r--r--tests/test_helpers.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_helpers.c b/tests/test_helpers.c
index cd14c0e29..5fd9a565a 100644
--- a/tests/test_helpers.c
+++ b/tests/test_helpers.c
@@ -26,8 +26,6 @@
#include "common.h"
#include "test_helpers.h"
#include "fileops.h"
-#include "git/oid.h"
-#include "git/repository.h"
int write_object_data(char *file, void *data, size_t len)
{
@@ -125,7 +123,7 @@ int remove_loose_object(const char *repository_folder, git_object *object)
int cmp_objects(git_rawobj *o, object_data *d)
{
- if (o->type != git_otype_fromstring(d->type))
+ if (o->type != git_object_string2type(d->type))
return -1;
if (o->len != d->dlen)
return -1;