]> git.proxmox.com Git - mirror_qemu.git/commitdiff
virtfs-proxy-helper: Make the helper_opts[] array const
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 5 Mar 2020 01:04:46 +0000 (02:04 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 9 Mar 2020 14:59:31 +0000 (15:59 +0100)
Reduce a bit the memory footprint by making the helper_opts[]
array const.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Greg Kurz <groug@kaod.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20200305010446.17029-4-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
fsdev/virtfs-proxy-helper.c

index aa1ab2590d425248967647400992fc62e78fbe41..de061a8a0eaaa496ce70ec859a0d36f66793fcbc 100644 (file)
@@ -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'},