Commit 8de08038 authored by Pierre Ynard's avatar Pierre Ynard

Fix constness

Partially reverts f3f203e5
parent f3f203e5
......@@ -117,7 +117,7 @@ static inline int xiph_PackHeaders(int *extra_size, void **extra,
}
static inline int xiph_AppendHeaders(int *extra_size, void **extra,
unsigned size, void *data)
unsigned size, const void *data)
{
unsigned packet_size[XIPH_MAX_HEADER_COUNT];
void *packet[XIPH_MAX_HEADER_COUNT];
......@@ -134,7 +134,7 @@ static inline int xiph_AppendHeaders(int *extra_size, void **extra,
free(*extra);
packet_size[count] = size;
packet[count] = data;
packet[count] = (void*)data;
if (xiph_PackHeaders(extra_size, extra, packet_size,
(const void **)packet, count + 1)) {
*extra_size = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment