mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
object_type: convert final internal users to new names
Update some missed types that were continuing to use the old `GIT_OBJ` names.
This commit is contained in:
@@ -26,7 +26,7 @@ int LLVMFuzzerInitialize(int *argc, char ***argv)
|
||||
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
{
|
||||
const git_otype types[] = {
|
||||
GIT_OBJ_BLOB, GIT_OBJ_TREE, GIT_OBJ_COMMIT, GIT_OBJ_TAG
|
||||
GIT_OBJECT_BLOB, GIT_OBJECT_TREE, GIT_OBJECT_COMMIT, GIT_OBJECT_TAG
|
||||
};
|
||||
git_object *object = NULL;
|
||||
size_t i;
|
||||
|
||||
@@ -70,7 +70,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
}
|
||||
git_mempack_reset(mempack);
|
||||
|
||||
if (git_odb_write(&id, odb, base_obj, base_obj_len, GIT_OBJ_BLOB) < 0) {
|
||||
if (git_odb_write(&id, odb, base_obj, base_obj_len, GIT_OBJECT_BLOB) < 0) {
|
||||
fprintf(stderr, "Failed to add an object to the odb\n");
|
||||
abort();
|
||||
}
|
||||
@@ -93,7 +93,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
||||
goto cleanup;
|
||||
if (append_hash) {
|
||||
git_oid oid;
|
||||
if (git_odb_hash(&oid, data, size, GIT_OBJ_BLOB) < 0) {
|
||||
if (git_odb_hash(&oid, data, size, GIT_OBJECT_BLOB) < 0) {
|
||||
fprintf(stderr, "Failed to compute the SHA1 hash\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user