From: Philippe Mathieu-Daudé Date: Thu, 5 Mar 2020 01:04:46 +0000 (+0100) Subject: virtfs-proxy-helper: Make the helper_opts[] array const X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b8ccfadc1f95b73766bf1ff33ea3549e37bd7c92;p=qemu.git virtfs-proxy-helper: Make the helper_opts[] array const Reduce a bit the memory footprint by making the helper_opts[] array const. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Greg Kurz Acked-by: Paolo Bonzini Reviewed-by: Stefano Garzarella Message-Id: <20200305010446.17029-4-philmd@redhat.com> Signed-off-by: Laurent Vivier --- diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c index aa1ab2590d..de061a8a0e 100644 --- a/fsdev/virtfs-proxy-helper.c +++ b/fsdev/virtfs-proxy-helper.c @@ -43,7 +43,7 @@ #define BTRFS_SUPER_MAGIC 0x9123683E #endif -static struct option helper_opts[] = { +static const struct option helper_opts[] = { {"fd", required_argument, NULL, 'f'}, {"path", required_argument, NULL, 'p'}, {"nodaemon", no_argument, NULL, 'n'},