mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
bhyve: Drop a bogus const qualifier
No functional change intended.
MFC after: 1 week
(cherry picked from commit eefd863cba
)
This commit is contained in:
parent
131a87a327
commit
dc1d08705b
|
@ -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 a new issue