bhyve: Drop a bogus const qualifier
No functional change intended. MFC after: 1 week
This commit is contained in:
parent
fb7ce0a95e
commit
eefd863cba
@ -474,15 +474,14 @@ vtinput_eventqueue_add_event(
|
|||||||
if (queue->idx >= queue->size) {
|
if (queue->idx >= queue->size) {
|
||||||
/* alloc new elements for queue */
|
/* alloc new elements for queue */
|
||||||
const uint32_t newSize = queue->idx;
|
const uint32_t newSize = queue->idx;
|
||||||
const void *newPtr = realloc(queue->events,
|
void *newPtr = realloc(queue->events,
|
||||||
queue->size * sizeof(struct vtinput_event_elem));
|
queue->size * sizeof(struct vtinput_event_elem));
|
||||||
if (newPtr == NULL) {
|
if (newPtr == NULL) {
|
||||||
WPRINTF(("%s: realloc memory for eventqueue failed!",
|
WPRINTF(("%s: realloc memory for eventqueue failed!",
|
||||||
__func__));
|
__func__));
|
||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
/* save new size and eventqueue */
|
queue->events = newPtr;
|
||||||
queue->events = (struct vtinput_event_elem *)newPtr;
|
|
||||||
queue->size = newSize;
|
queue->size = newSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user