diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-03-05 13:29:50 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-03-05 13:29:50 +0200 |
commit | 3490188b3c40b7a6cddd4acb11ee76db171dc5ef (patch) | |
tree | 17bc39b69d5545b0256fc948f16c1e9e592ef5a1 | |
parent | e0011be3301db9b287226c6c8f1794c912bb0241 (diff) | |
download | libgit2-3490188b3c40b7a6cddd4acb11ee76db171dc5ef.tar.gz |
Change the return type of `git_blob_rawcontent`
Should return `void *` for raw bytes.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
-rw-r--r-- | include/git2/blob.h | 2 | ||||
-rw-r--r-- | 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); |