From nobody Thu Jan 26 19:47:57 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P2rpk0sNCz3bnRS; Thu, 26 Jan 2023 19:47:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P2rpj6rK5z3DDS; Thu, 26 Jan 2023 19:47:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674762478; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iBeamQN9uJ3sf9KuldV4nnwYq+4y+pHCXclrN9n+4Nc=; b=E+J0ifMNTk1o+HwnB6XzTHGtZo3lfcAKjF6zxDQS75RboJjGUgitcCKhZfkdbqoNAqhF0K pJa8imqxf2nk20Xglwqlq+lWBf60pgjQfpj7qe2qxw1snzocYlwBOZjUefEbwN2vlefiGQ BdczMxaNcpNT/EYepXza/I3c2ycgBlcRJuc5aCH3y+9w1iqesWigds9DDNf0SyYOlEbH8C 0o855Zr/THbH9Q5sugqZ2Ay7WD62Y0VOzXWvMjSArgnEjsXEU5U2+dnSw+d42+MVTCsi8u YtyYx+Pg3HQggJDxGpEXT72IRtT4B2FsA2at18BFMlW5EQHLgqzHViOiNEvKag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674762478; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iBeamQN9uJ3sf9KuldV4nnwYq+4y+pHCXclrN9n+4Nc=; b=uXmAqoyAxSZi9yYIrWS4ircQaaAOM+owiq7u+aAgH0xIKh+BrE+TBP4p4+9CuoT98LI48p zB4Q60qzbx14w3Q9sIcXpdTo/Gz2oWFKsYR81tEfNc9l56PZkGXzBjLigEyecBEw5f+g6Z e0/q4TUt4hGLxMlcGJsYTSzHWEElJaWPVeVg4TfyExNCh9m8Zt6bJ/9atKZOFl3esQhQxb caKmfHuILjHlXbJLh77FpbE4PIvZ4ltY0qqJM3i8S29yWhETOyn7Apt1ikBD6LPFRki4Jf 3icryVma9LDDgcHO2J4xhxGnVdddSwZNOSsxB6q+rY3jjTbbhfmCBWEBWbxviA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674762478; a=rsa-sha256; cv=none; b=YGD2b+LpoHbDvKnLp6lXqQwcHwy5QA++VFpuY+0/BxDx1tZbms/OBs2aU6lCAnGPT2UzdU L9wlzJMbi2t1hyIQjkp1UQ9nmKxr/40976RJPVbx2xWIWyOEHFVAVcCzfWS+E2EVZ6N5q6 1+/hTik2sYb7fZp1dZ8AF7GY2vqQFdBjdN81pHnxi6HCwPFoWJVZqWqQpImU+En0ogGRf5 5UmP1G70byfZMwrzE66nuCJddCBABWI7uCBMGETNzKFTKx8f2OLg4WqTNJ97mQOCEamBIr GglmIBLpH47jDaHPgxrsGVyPXHprw2qFdP2aIc7kTyxweVUOYOsK0PGgghVTYA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P2rpj5lJmzhKG; Thu, 26 Jan 2023 19:47:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30QJlvkf007326; Thu, 26 Jan 2023 19:47:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30QJlvAG007325; Thu, 26 Jan 2023 19:47:57 GMT (envelope-from git) Date: Thu, 26 Jan 2023 19:47:57 GMT Message-Id: <202301261947.30QJlvAG007325@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: dc1d08705b4e - stable/13 - bhyve: Drop a bogus const qualifier List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: dc1d08705b4efa8e38f1884bc238478e7a5878a8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=dc1d08705b4efa8e38f1884bc238478e7a5878a8 commit dc1d08705b4efa8e38f1884bc238478e7a5878a8 Author: Mark Johnston AuthorDate: 2022-10-24 21:35:16 +0000 Commit: John Baldwin CommitDate: 2023-01-26 19:31:46 +0000 bhyve: Drop a bogus const qualifier No functional change intended. MFC after: 1 week (cherry picked from commit eefd863cbae9d7b2f5c83948b45be13951a0c495) --- usr.sbin/bhyve/pci_virtio_input.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.sbin/bhyve/pci_virtio_input.c b/usr.sbin/bhyve/pci_virtio_input.c index dff8eaafaa21..77cbcf3aa0cf 100644 --- a/usr.sbin/bhyve/pci_virtio_input.c +++ b/usr.sbin/bhyve/pci_virtio_input.c @@ -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; }