diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-28 14:26:57 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-12-01 11:54:57 +0000 |
commit | 168fe39bea3368972a8b1a33d5908e73bc790c18 (patch) | |
tree | c6d07340e2d8d2d66091c44c7763f3e1823acca2 /tests/odb/backend/backend_helpers.c | |
parent | 18e71e6d597abe6c7feb666429c921bd19dc0ba8 (diff) | |
download | libgit2-ethomson/index_fixes.tar.gz |
object_type: use new enumeration namesethomson/index_fixes
Use the new object_type enumeration names within the codebase.
Diffstat (limited to 'tests/odb/backend/backend_helpers.c')
-rw-r--r-- | tests/odb/backend/backend_helpers.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/odb/backend/backend_helpers.c b/tests/odb/backend/backend_helpers.c index 37a8fd200..c0f4103f1 100644 --- a/tests/odb/backend/backend_helpers.c +++ b/tests/odb/backend/backend_helpers.c @@ -58,7 +58,7 @@ static int fake_backend__exists_prefix( } static int fake_backend__read( - void **buffer_p, size_t *len_p, git_otype *type_p, + void **buffer_p, size_t *len_p, git_object_t *type_p, git_odb_backend *backend, const git_oid *oid) { const fake_object *obj; @@ -74,13 +74,13 @@ static int fake_backend__read( *len_p = strlen(obj->content); *buffer_p = git__strdup(obj->content); - *type_p = GIT_OBJ_BLOB; + *type_p = GIT_OBJECT_BLOB; return 0; } static int fake_backend__read_header( - size_t *len_p, git_otype *type_p, + size_t *len_p, git_object_t *type_p, git_odb_backend *backend, const git_oid *oid) { const fake_object *obj; @@ -95,13 +95,13 @@ static int fake_backend__read_header( return error; *len_p = strlen(obj->content); - *type_p = GIT_OBJ_BLOB; + *type_p = GIT_OBJECT_BLOB; return 0; } static int fake_backend__read_prefix( - git_oid *out_oid, void **buffer_p, size_t *len_p, git_otype *type_p, + git_oid *out_oid, void **buffer_p, size_t *len_p, git_object_t *type_p, git_odb_backend *backend, const git_oid *short_oid, size_t len) { const fake_object *obj; @@ -118,7 +118,7 @@ static int fake_backend__read_prefix( git_oid_fromstr(out_oid, obj->oid); *len_p = strlen(obj->content); *buffer_p = git__strdup(obj->content); - *type_p = GIT_OBJ_BLOB; + *type_p = GIT_OBJECT_BLOB; return 0; } |