From 3490188b3c40b7a6cddd4acb11ee76db171dc5ef Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Sat, 5 Mar 2011 13:29:50 +0200 Subject: [PATCH] Change the return type of `git_blob_rawcontent` Should return `void *` for raw bytes. Signed-off-by: Vicent Marti --- include/git2/blob.h | 2 +- src/blob.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/git2/blob.h b/include/git2/blob.h index b527d61f4..2b7154fb5 100644 --- a/include/git2/blob.h +++ b/include/git2/blob.h @@ -102,7 +102,7 @@ GIT_EXTERN(int) git_blob_set_rawcontent(git_blob *blob, const void *buffer, size * @param blob pointer to the blob * @return the pointer; NULL if the blob has no contents */ -GIT_EXTERN(const char *) git_blob_rawcontent(git_blob *blob); +GIT_EXTERN(const void *) git_blob_rawcontent(git_blob *blob); /** * Get the size in bytes of the contents of a blob diff --git a/src/blob.c b/src/blob.c index a9e765b40..f157f4787 100644 --- a/src/blob.c +++ b/src/blob.c @@ -30,7 +30,7 @@ #include "common.h" #include "blob.h" -const char *git_blob_rawcontent(git_blob *blob) +const void *git_blob_rawcontent(git_blob *blob) { assert(blob); -- 2.39.5