From nobody Mon Oct 24 21:36:09 2022 X-Original-To: dev-commits-src-main@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 4Mx7fy0dcKz4gq91; Mon, 24 Oct 2022 21:36:10 +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 4Mx7fy05NCz3DVN; Mon, 24 Oct 2022 21:36:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666647370; 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=28eHYE1xnzk0yzEBEkJH/DoOosDlkomfNlLkscdIFJI=; b=BaQzE9fkr5nxyRuIVXFmmAJPYLXn+qAY+PYSyNIi9pKsjY5yf5OiNfOwajd8Q00xNuFJYV 1WziuQYrjc3HLl8LE+5HXe1/HTza+b1M1wjulMS0K2Y1eyB/c85zbCuumw3ippjt3aeC/0 2JKJoA5nIUUdi0JGfpxqyy96FeJs+CuJ9oH38e5A+ZVR0vhpjvV6weqOl1ojwqd91VPOgX N44aUWQy0lni5tf/m5P5OZ68+p+UOZcGUUM7/2SfHgRFGbmF0TCxVkG6AFUu4p+1DircVu dnnwcofJfO6jtrbeApYtvKLm363ILTgVE8hqx/v5vqg4TKIoFLWfit+K+ZcjnQ== 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 4Mx7fx6DyCzMvZ; Mon, 24 Oct 2022 21:36:09 +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 29OLa9K1039036; Mon, 24 Oct 2022 21:36:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29OLa92M039035; Mon, 24 Oct 2022 21:36:09 GMT (envelope-from git) Date: Mon, 24 Oct 2022 21:36:09 GMT Message-Id: <202210242136.29OLa92M039035@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: eefd863cbae9 - main - bhyve: Drop a bogus const qualifier List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eefd863cbae9d7b2f5c83948b45be13951a0c495 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666647370; 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=28eHYE1xnzk0yzEBEkJH/DoOosDlkomfNlLkscdIFJI=; b=ifs4YLGW0r2sGbDyw+dp12Zms4vWpbeIblz61yJNeGOnThkd8HjXNsiCzBH1j2QVJyREhp L3Qnd/Jz4y8mK9TEyptIYa+tsGvUkYAB1ESrc3EezVhfkJ6dcHYUlnFWIAgJ+NFHYrc+UB fiYLChlxyxuYkQWmuGgjyUvD3LD39WWeQDpw7/kJo8GunN9ul4LlujlrdHcCB8lesu3Ko6 RzesWSWSzfgPBGBjHN0LuCi5MN4hC4WFdJHog4WH/MDIeYcvDOydyz5SnYESsfDlK+c67s JNZSt2Igr9rgZkE9ar+lW5HiTkbfIdVcL5AaooyaGHmMWmzN00Rz1dNfc42Q2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666647370; a=rsa-sha256; cv=none; b=wr8ibqYU97mChhXzRf1pPvale683xCHX0WEpw2nzljEy8e1dRL+oVeNgfTqwGPJ3RYPMvH 8JuZiFd9L3d5D1NKaK713cPsVOSmEWAAvQrsqzVi1J09W4zGI/NKA/KgySTUZCRm1PeWOV Kh6V8iUyq3J8McB+eNrE0if/jD0WpVJplZT/NDp06pVMdNqXmw4saw9bA+FBb7SGrDMoV/ Htkavj07WOsqZ0Pze7YpKXEPQTFOPdTbPLDN79rYnuFSs4PDtEH6iFgHhGdkb/zutbYXjb j3+nni8nLlAjD8bza57CFKKmY0iGZOMSqY1HQezgxwr1FQG1tp/+Zkijy/mS6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=eefd863cbae9d7b2f5c83948b45be13951a0c495 commit eefd863cbae9d7b2f5c83948b45be13951a0c495 Author: Mark Johnston AuthorDate: 2022-10-24 21:35:16 +0000 Commit: Mark Johnston CommitDate: 2022-10-24 21:35:16 +0000 bhyve: Drop a bogus const qualifier No functional change intended. MFC after: 1 week --- 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 758b228ea39c..ba5c024e30bf 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; }