git: 30836df154d4 - main - bhyve(8): Preserve const qualifier in pci_vtinput_legacy_config()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Nov 2026 19:18:15 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=30836df154d4d12fa4859b0c54a8b3fdb10604c7
commit 30836df154d4d12fa4859b0c54a8b3fdb10604c7
Author: Amir Shakeri <amirmuhammadshk@gmail.com>
AuthorDate: 2026-11-25 18:13:20 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-11-25 19:17:36 +0000
bhyve(8): Preserve const qualifier in pci_vtinput_legacy_config()
Signed-off-by: Amir Shakeri <amirmuhammadshk@gmail.com>
Reviewed by: emaste
Pull request: https://github.com/freebsd/freebsd-src/pull/2592
---
usr.sbin/bhyve/pci_virtio_input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.sbin/bhyve/pci_virtio_input.c b/usr.sbin/bhyve/pci_virtio_input.c
index 29acdbfdfc16..690f14effcaa 100644
--- a/usr.sbin/bhyve/pci_virtio_input.c
+++ b/usr.sbin/bhyve/pci_virtio_input.c
@@ -614,7 +614,7 @@ pci_vtinput_legacy_config(nvlist_t *nvl, const char *opts)
* parse opts:
* virtio-input,/dev/input/eventX
*/
- char *cp = strchr(opts, ',');
+ const char *cp = strchr(opts, ',');
if (cp == NULL) {
set_config_value_node(nvl, "path", opts);
return (0);