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) {
|
||||
/* alloc new elements for queue */
|
||||
const uint32_t newSize = queue->idx;
|
||||
const void *newPtr = realloc(queue->events,
|
||||
void *newPtr = realloc(queue->events,
|
||||
queue->size * sizeof(struct vtinput_event_elem));
|
||||
if (newPtr == NULL) {
|
||||
WPRINTF(("%s: realloc memory for eventqueue failed!",
|
||||
__func__));
|
||||
return (1);
|
||||
}
|
||||
/* save new size and eventqueue */
|
||||
queue->events = (struct vtinput_event_elem *)newPtr;
|
||||
queue->events = newPtr;
|
||||
queue->size = newSize;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user