git: 20c0629a3b1b - stable/13 - bhyve: sweep MAX_VMNAME
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Jan 2023 18:54:30 UTC
The branch stable/13 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=20c0629a3b1bf320de5999c925f501f1bc2c3805
commit 20c0629a3b1bf320de5999c925f501f1bc2c3805
Author: Robert Wing <rew@FreeBSD.org>
AuthorDate: 2022-03-18 05:55:52 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-01-26 18:49:01 +0000
bhyve: sweep MAX_VMNAME
MAX_VMNAME is no longer used.
Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D34292
(cherry picked from commit 3ebe1109348f53f64b395293578416abedef4090)
---
usr.sbin/bhyve/snapshot.c | 2 --
usr.sbin/bhyvectl/bhyvectl.c | 2 --
2 files changed, 4 deletions(-)
diff --git a/usr.sbin/bhyve/snapshot.c b/usr.sbin/bhyve/snapshot.c
index a5217eaab1ec..ee709147cec4 100644
--- a/usr.sbin/bhyve/snapshot.c
+++ b/usr.sbin/bhyve/snapshot.c
@@ -116,8 +116,6 @@ static sig_t old_winch_handler;
#define SNAPSHOT_CHUNK (4 * MB)
#define PROG_BUF_SZ (8192)
-#define MAX_VMNAME 100
-
#define SNAPSHOT_BUFFER_SIZE (20 * MB)
#define JSON_STRUCT_ARR_KEY "structs"
diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c
index e4de6da1803c..06ab05cd48e1 100644
--- a/usr.sbin/bhyvectl/bhyvectl.c
+++ b/usr.sbin/bhyvectl/bhyvectl.c
@@ -74,8 +74,6 @@ __FBSDID("$FreeBSD$");
#define NO_ARG no_argument
#define OPT_ARG optional_argument
-#define MAX_VMNAME 100
-
static const char *progname;
static void