[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] virtfs-proxy-helper: Make the helper_opts[] array const
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 3/3] virtfs-proxy-helper: Make the helper_opts[] array const |
Date: |
Thu, 5 Mar 2020 02:04:46 +0100 |
Reduce a bit the memory footprint by making the helper_opts[]
array const.
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
fsdev/virtfs-proxy-helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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'},
--
2.21.1
- [PATCH 0/3] hw/net,virtfs-proxy-helper: Reduce .data footprint, Philippe Mathieu-Daudé, 2020/03/04
- [PATCH 3/3] virtfs-proxy-helper: Make the helper_opts[] array const,
Philippe Mathieu-Daudé <=
- [PATCH 1/3] hw/net/e1000: Add readops/writeops typedefs, Philippe Mathieu-Daudé, 2020/03/04
- [PATCH 2/3] hw/net/e1000: Move macreg[] arrays to .rodata to save 1MiB of .data, Philippe Mathieu-Daudé, 2020/03/04
- Re: [PATCH 0/3] hw/net,virtfs-proxy-helper: Reduce .data footprint, Stefano Garzarella, 2020/03/05
- Re: [PATCH 0/3] hw/net,virtfs-proxy-helper: Reduce .data footprint, Paolo Bonzini, 2020/03/06