summaryrefslogtreecommitdiffstats
path: root/fsdev
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-03-05 02:04:46 +0100
committerLaurent Vivier2020-03-09 15:59:31 +0100
commitb8ccfadc1f95b73766bf1ff33ea3549e37bd7c92 (patch)
tree4498a74bdb390510709e0f979927c81e2b4951b2 /fsdev
parenthw/net/e1000: Move macreg[] arrays to .rodata to save 1MiB of .data (diff)
downloadqemu-b8ccfadc1f95b73766bf1ff33ea3549e37bd7c92.tar.gz
qemu-b8ccfadc1f95b73766bf1ff33ea3549e37bd7c92.tar.xz
qemu-b8ccfadc1f95b73766bf1ff33ea3549e37bd7c92.zip
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é <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>
Diffstat (limited to 'fsdev')
-rw-r--r--fsdev/virtfs-proxy-helper.c2
1 files changed, 1 insertions, 1 deletions
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'},