mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 18:22:16 +00:00
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:
parent
e0011be330
commit
3490188b3c
@ -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
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user