Fix ringbuffer_write() to use const BYTE * instead of const void *

This commit is contained in:
Hardening 2014-05-21 19:12:51 +02:00
parent d8eb1f284f
commit de1c08736f
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ size_t ringbuffer_capacity(const RingBuffer *ringbuffer);
* @param sz the size of the data to add * @param sz the size of the data to add
* @return if the operation was successful, it could fail in case of OOM during realloc() * @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 /** ensures that we have sz bytes available at the write head, and return a pointer

View File

@ -131,7 +131,7 @@ static BOOL ringbuffer_realloc(RingBuffer *rb, size_t targetSize)
* @param sz * @param sz
* @return * @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 toWrite;
size_t remaining; size_t remaining;