Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 2021 03:04:26 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f037731345f1 - main - stand/module: skip is only used by veriexec
Message-ID:  <202112160304.1BG34Qtq055930@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

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

commit f037731345f1f4d2b09bb91648c6b4ea8638a65f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-12-16 02:52:29 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-12-16 02:58:33 +0000

    stand/module: skip is only used by veriexec
    
    Sponsored by:           Netflix
---
 stand/common/module.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/stand/common/module.c b/stand/common/module.c
index b9ddd868b8de..9cb10d0f9f9d 100644
--- a/stand/common/module.c
+++ b/stand/common/module.c
@@ -113,9 +113,8 @@ command_load(int argc, char *argv[])
 	struct preloaded_file *fp;
 	char	*typestr;
 #ifdef LOADER_VERIEXEC
-	char	*prefix;
+	char	*prefix, *skip;
 #endif
-	char	*skip;
 	int		dflag, dofile, dokld, ch, error;
 
 	dflag = dokld = dofile = 0;
@@ -128,8 +127,8 @@ command_load(int argc, char *argv[])
 	}
 #ifdef LOADER_VERIEXEC
 	prefix = NULL;
-#endif
 	skip = NULL;
+#endif
 	while ((ch = getopt(argc, argv, "dkp:s:t:")) != -1) {
 		switch(ch) {
 		case 'd':
@@ -142,10 +141,10 @@ command_load(int argc, char *argv[])
 		case 'p':
 			prefix = optarg;
 			break;
-#endif
 		case 's':
 			skip = optarg;
 			break;
+#endif
 		case 't':
 			typestr = optarg;
 			dofile = 1;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112160304.1BG34Qtq055930>