aboutsummaryrefslogtreecommitdiffstats
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-02-15 17:11:53 -0800
committerJunio C Hamano <gitster@pobox.com>2023-02-15 17:11:53 -0800
commitc5f7b2a6fe34bbdd4453be6620e08dbcf1b695fb (patch)
treebf9ee398bbb3180d0bbb2d63d5355446ef81f491 /cache.h
parentMerge branch 'kf/t5000-modernise' (diff)
parentpack-objects: use strcspn(3) in name_cmp_len() (diff)
downloadgit-c5f7b2a6fe34bbdd4453be6620e08dbcf1b695fb.tar.gz
git-c5f7b2a6fe34bbdd4453be6620e08dbcf1b695fb.zip
Merge branch 'rs/size-t-fixes'
Type fixes. * rs/size-t-fixes: pack-objects: use strcspn(3) in name_cmp_len() read-cache: use size_t for {base,df}_name_compare()
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cache.h b/cache.h
index 4bf14e0bd9..52d017335e 100644
--- a/cache.h
+++ b/cache.h
@@ -1623,8 +1623,10 @@ int repo_interpret_branch_name(struct repository *r,
int validate_headref(const char *ref);
-int base_name_compare(const char *name1, int len1, int mode1, const char *name2, int len2, int mode2);
-int df_name_compare(const char *name1, int len1, int mode1, const char *name2, int len2, int mode2);
+int base_name_compare(const char *name1, size_t len1, int mode1,
+ const char *name2, size_t len2, int mode2);
+int df_name_compare(const char *name1, size_t len1, int mode1,
+ const char *name2, size_t len2, int mode2);
int name_compare(const char *name1, size_t len1, const char *name2, size_t len2);
int cache_name_stage_compare(const char *name1, int len1, int stage1, const char *name2, int len2, int stage2);