mirror of
https://github.com/git/git.git
synced 2026-08-03 06:31:08 +00:00
odb: fix flags parameter to be unsigned
The `flags` parameter accepted by various `for_each_object()` functions is a bitfield of multiple flags. Such parameters are typically unsigned in the Git codebase, but we use `enum odb_for_each_object_flags` in some places. Adapt these function signatures to use the correct type. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
bd1855b897
commit
6358da200f
@@ -339,9 +339,9 @@ typedef int each_packed_object_fn(const struct object_id *oid,
|
||||
void *data);
|
||||
int for_each_object_in_pack(struct packed_git *p,
|
||||
each_packed_object_fn, void *data,
|
||||
enum odb_for_each_object_flags flags);
|
||||
unsigned flags);
|
||||
int for_each_packed_object(struct repository *repo, each_packed_object_fn cb,
|
||||
void *data, enum odb_for_each_object_flags flags);
|
||||
void *data, unsigned flags);
|
||||
|
||||
/* A hook to report invalid files in pack directory */
|
||||
#define PACKDIR_FILE_PACK 1
|
||||
|
||||
Reference in New Issue
Block a user