Change the return type of git_blob_rawcontent

Should return `void *` for raw bytes.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
This commit is contained in:
Vicent Marti 2011-03-05 13:29:50 +02:00
parent e0011be330
commit 3490188b3c
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ GIT_EXTERN(int) git_blob_set_rawcontent(git_blob *blob, const void *buffer, size
* @param blob pointer to the blob * @param blob pointer to the blob
* @return the pointer; NULL if the blob has no contents * @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 * Get the size in bytes of the contents of a blob

View File

@ -30,7 +30,7 @@
#include "common.h" #include "common.h"
#include "blob.h" #include "blob.h"
const char *git_blob_rawcontent(git_blob *blob) const void *git_blob_rawcontent(git_blob *blob)
{ {
assert(blob); assert(blob);