diff options
author | René Scharfe <l.s.r@web.de> | 2023-02-05 13:42:27 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-07 01:31:11 +0300 |
commit | e65b868d074a38b3049529064bb05df53948761f (patch) | |
tree | 1ce37e179db58e1475ed25dee026a452f2188854 /linear-assignment.c | |
parent | 1b4a38d741a4f256c76ae5bffd3c8a52e05927b2 (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 'linear-assignment.c')
0 files changed, 0 insertions, 0 deletions