From nobody Thu Jan 26 19:47:50 2023 X-Original-To: dev-commits-src-all@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 4P2rpb6nQ0z3bnX3; Thu, 26 Jan 2023 19:47:51 +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 4P2rpb19c6z3CxS; Thu, 26 Jan 2023 19:47:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674762471; 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=7q2V/A16WBUQ40mGThy5YTMFVaNZ+DhE8QLAN37B53Q=; b=NVFW1HKkIavSR+wF7D+EboGIwxp4361KgfiTagsGM2SgsUZEaKTcut1dfiyERb+VmGFx6s j88XObruk6vx+waPs3le4oS5O8tnlbgUC6FYDnEFD4DBk1drIZs+pusH2umHFMyCUts2+q TixAnbkqLBB7NkFnFUbGhnlZgUAlpqE4qT4gYNn0aSFD1sQ4XQKNBJ8Cw2vUFjzyrbtWy/ h0MeGeiHIj5zcwSnDliVNwICwD21zb+/xHy+icpyZWZFTf35jEXAlXEXVA1YDlD/SLwrnU UV/yDf3Zd+3J+aKAOOLLTt4csV5BkH1rH2LnEmkweBPai3+Kh/k9Bl1f2MXK3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674762471; 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=7q2V/A16WBUQ40mGThy5YTMFVaNZ+DhE8QLAN37B53Q=; b=uw51RSzK1Lgt1Id8S0SR8QABm1YggsIKCGrXJVoZ0bT4YSPzNaYNt0/VkcGdB9wuiAhEme ZMsFyVJakXZZH5fEEuALiPOd0KEbA4mcvOHhobfFlJt6/zFJmtNAnXxhNLXz7WJ41IsqLD 36DNqMZuDEqxigiPcd30kvePHnrq72aMoFTTDbkF45ODK0tCI2ST592GBGxL7JjGf7E/e+ jRoq/giuYVYy8PjooLuTEyZ2V8wDBkIhmYtz0MbxcemBwVMkY2AiMPN2g6eVYCUPdAWI5x p1Tn1O5/DqGCIfOlwq7lFdzidTy7/lo/yBazuJa/qXP0Xy2jOQDarDpwYggMsA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674762471; a=rsa-sha256; cv=none; b=PMdvR+wdQdqltQkQwAsegVPsC5C/IqUCWqwkG2q061MXrt3ZfVllRBROFhMc56ukJJTOl9 hytiO371E3eudnv9FHSLNgLBHHqIMiyYThSqjGdkDAObhCFUbD8WEBSdYs+hdQbgZsRTNn BgMbyUgxI5+Zg6JQHY8opv3qxcCz2h7Be3SsCyE1ATg4PyGSW+D4ib9qF+okCUlrqGotcQ iL8Fx61aGTkcQrpy6U2mkrpaRR/kv0Uq7APKand9oss+IpqIfDjOmhXRBYO1ZMJZlxwTvn 59W5ZvQodKtG1TXqi22kRIWd29HlaOtvx71OkBwvw2rsEtWhwpLFxyLzHprENg== 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 4P2rpb0Hn3zhFF; Thu, 26 Jan 2023 19:47:51 +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 30QJlo4S007168; Thu, 26 Jan 2023 19:47:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30QJlo0c007167; Thu, 26 Jan 2023 19:47:50 GMT (envelope-from git) Date: Thu, 26 Jan 2023 19:47:50 GMT Message-Id: <202301261947.30QJlo0c007167@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: 986e3ea0abb6 - stable/13 - bhyve: Use the proper type for string literals List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 986e3ea0abb6b3bc5748033e102d5ca96091e791 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=986e3ea0abb6b3bc5748033e102d5ca96091e791 commit 986e3ea0abb6b3bc5748033e102d5ca96091e791 Author: Mark Johnston AuthorDate: 2022-10-22 17:37:46 +0000 Commit: John Baldwin CommitDate: 2023-01-26 19:31:06 +0000 bhyve: Use the proper type for string literals No functional change intended. MFC after: 1 week (cherry picked from commit 7039bdd5351a080e648c6519636227bcd38a255c) --- usr.sbin/bhyve/ipc.h | 2 +- usr.sbin/bhyve/usb_emul.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bhyve/ipc.h b/usr.sbin/bhyve/ipc.h index 38faf69eb5f4..674fc210e0fb 100644 --- a/usr.sbin/bhyve/ipc.h +++ b/usr.sbin/bhyve/ipc.h @@ -34,7 +34,7 @@ #include struct ipc_command { - char *name; + const char *name; int (*handler)(struct vmctx *ctx, const nvlist_t *nvl); }; diff --git a/usr.sbin/bhyve/usb_emul.h b/usr.sbin/bhyve/usb_emul.h index 67f4f3ff08f1..9a2844a8db1e 100644 --- a/usr.sbin/bhyve/usb_emul.h +++ b/usr.sbin/bhyve/usb_emul.h @@ -49,7 +49,7 @@ struct vm_snapshot_meta; /* Device emulation handlers */ struct usb_devemu { - char *ue_emu; /* name of device emulation */ + const char *ue_emu; /* name of device emulation */ int ue_usbver; /* usb version: 2 or 3 */ int ue_usbspeed; /* usb device speed */