From 7e7cfe8acdc8e506a5e670e7cfb74e43c031ccaf Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Sun, 26 Sep 2021 20:20:03 -0400 Subject: buf: common_prefix takes a string array `git_strarray` is a public-facing type. Change `git_buf_text_common_prefix` to not use it, and just take an array of strings instead. --- src/buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buffer.h') diff --git a/src/buffer.h b/src/buffer.h index a356bebea..75930e209 100644 --- a/src/buffer.h +++ b/src/buffer.h @@ -324,7 +324,7 @@ extern int git_buf_lf_to_crlf(git_buf *tgt, const git_buf *src); * * Buffer will be set to empty if there is no common prefix */ -extern int git_buf_common_prefix(git_buf *buf, const git_strarray *strs); +extern int git_buf_common_prefix(git_buf *buf, char *const *const strings, size_t count); /** * Check if a buffer begins with a UTF BOM -- cgit v1.2.1