aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-12-16 02:52:29 +0000
committerWarner Losh <imp@FreeBSD.org>2021-12-16 02:58:33 +0000
commitf037731345f1f4d2b09bb91648c6b4ea8638a65f (patch)
tree10ea279eb64eadd06b68e1da79b63699dfa43f44 /stand
parent7a7a464c7e7d42cd72b1a201c3a3257cb6864ad8 (diff)
downloadsrc-f037731345f1f4d2b09bb91648c6b4ea8638a65f.tar.gz
src-f037731345f1f4d2b09bb91648c6b4ea8638a65f.zip
stand/module: skip is only used by veriexec
Sponsored by: Netflix
Diffstat (limited to 'stand')
-rw-r--r--stand/common/module.c7
1 files 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;