Commit 42644cee authored by Jim Meyering's avatar Jim Meyering Committed by Riku Voipio
Browse files

linux-user: arg_table need not have global scope

Declare arg_table to be "static const", and adjust the two users
to also be const.
Signed-off-by: default avatarJim Meyering <>
Signed-off-by: default avatarRiku Voipio <>
parent d03c98d8
......@@ -3222,7 +3222,7 @@ struct qemu_argument {
const char *help;
struct qemu_argument arg_table[] = {
static const struct qemu_argument arg_table[] = {
{"h", "", false, handle_arg_help,
"", "print this help"},
{"g", "QEMU_GDB", true, handle_arg_gdb,
......@@ -3264,7 +3264,7 @@ struct qemu_argument arg_table[] = {
static void usage(void)
struct qemu_argument *arginfo;
const struct qemu_argument *arginfo;
int maxarglen;
int maxenvlen;
......@@ -3330,7 +3330,7 @@ static int parse_args(int argc, char **argv)
const char *r;
int optind;
struct qemu_argument *arginfo;
const struct qemu_argument *arginfo;
for (arginfo = arg_table; arginfo->handle_opt != NULL; arginfo++) {
if (arginfo->env == NULL) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment