Fix ringbuffer_write() to use const BYTE * instead of const void *
This commit is contained in:
parent
d8eb1f284f
commit
de1c08736f
@ -76,7 +76,7 @@ size_t ringbuffer_capacity(const RingBuffer *ringbuffer);
|
||||
* @param sz the size of the data to add
|
||||
* @return if the operation was successful, it could fail in case of OOM during realloc()
|
||||
*/
|
||||
BOOL ringbuffer_write(RingBuffer *rb, const void *ptr, size_t sz);
|
||||
BOOL ringbuffer_write(RingBuffer *rb, const BYTE *ptr, size_t sz);
|
||||
|
||||
|
||||
/** ensures that we have sz bytes available at the write head, and return a pointer
|
||||
|
@ -131,7 +131,7 @@ static BOOL ringbuffer_realloc(RingBuffer *rb, size_t targetSize)
|
||||
* @param sz
|
||||
* @return
|
||||
*/
|
||||
BOOL ringbuffer_write(RingBuffer *rb, const void *ptr, size_t sz)
|
||||
BOOL ringbuffer_write(RingBuffer *rb, const BYTE *ptr, size_t sz)
|
||||
{
|
||||
size_t toWrite;
|
||||
size_t remaining;
|
||||
|
Loading…
Reference in New Issue
Block a user