The branch stable/13 has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=986e3ea0abb6b3bc5748033e102d5ca96091e791

commit 986e3ea0abb6b3bc5748033e102d5ca96091e791
Author:     Mark Johnston <[email protected]>
AuthorDate: 2022-10-22 17:37:46 +0000
Commit:     John Baldwin <[email protected]>
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 <sys/nv.h>
 
 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 */
 

Reply via email to