]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fsck.c
object: convert parse_object* to take struct object_id
[thirdparty/git.git] / fsck.c
diff --git a/fsck.c b/fsck.c
index ab3016c0e1f96f00a17a5b8dfe1fec1956ac5ff3..90857e122d8be640469dba29894e65ac53d71692 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -358,7 +358,7 @@ static int fsck_walk_tree(struct tree *tree, void *data, struct fsck_options *op
                        continue;
 
                if (S_ISDIR(entry.mode)) {
-                       obj = &lookup_tree(entry.oid->hash)->object;
+                       obj = &lookup_tree(entry.oid)->object;
                        if (name)
                                put_object_name(options, obj, "%s%s/", name,
                                        entry.path);
@@ -461,7 +461,7 @@ int fsck_walk(struct object *obj, void *data, struct fsck_options *options)
                return -1;
 
        if (obj->type == OBJ_NONE)
-               parse_object(obj->oid.hash);
+               parse_object(&obj->oid);
 
        switch (obj->type) {
        case OBJ_BLOB: