diff options
Diffstat (limited to 'src/buf_text.c')
-rw-r--r-- | src/buf_text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buf_text.c b/src/buf_text.c index 8d2b141b2..0e93696cd 100644 --- a/src/buf_text.c +++ b/src/buf_text.c @@ -176,7 +176,7 @@ int git_buf_text_common_prefix(git_buf *buf, const git_strarray *strings) return 0; } -bool git_buf_text_is_binary(const git_buf *buf) +int git_buf_text_is_binary(const git_buf *buf) { const char *scan = buf->ptr, *end = buf->ptr + buf->size; git_bom_t bom; @@ -201,7 +201,7 @@ bool git_buf_text_is_binary(const git_buf *buf) return ((printable >> 7) < nonprintable); } -bool git_buf_text_contains_nul(const git_buf *buf) +int git_buf_text_contains_nul(const git_buf *buf) { return (memchr(buf->ptr, '\0', buf->size) != NULL); } |