Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2023-02-05 13:42:27 +0300
committerJunio C Hamano <gitster@pobox.com>2023-02-07 01:31:11 +0300
commite65b868d074a38b3049529064bb05df53948761f (patch)
tree1ce37e179db58e1475ed25dee026a452f2188854 /read-cache.c
parent1b4a38d741a4f256c76ae5bffd3c8a52e05927b2 (diff)
pack-objects: use strcspn(3) in name_cmp_len()
Call strcspn(3) to find the length of a string terminated by NUL, NL or slash instead of open-coding it. Adopt its return type, size_t, to support strings of arbitrary length. Use that type in callers as well for variables and function parameters that receive the return value. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'read-cache.c')
0 files changed, 0 insertions, 0 deletions