git: 7039bdd5351a - main - bhyve: Use the proper type for string literals
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Oct 2022 15:18:38 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=7039bdd5351a080e648c6519636227bcd38a255c
commit 7039bdd5351a080e648c6519636227bcd38a255c
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-10-22 17:37:46 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-10-23 15:11:33 +0000
bhyve: Use the proper type for string literals
No functional change intended.
MFC after: 1 week
---
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 */