Skip to content

Commit

Permalink
virtfs-proxy-helper: Make the helper_opts[] array const
Browse files Browse the repository at this point in the history
Reduce a bit the memory footprint by making the helper_opts[]
array const.

Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Acked-by: Greg Kurz <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
  • Loading branch information
philmd authored and vivier committed Mar 9, 2020
1 parent da5cf9a commit b8ccfad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsdev/virtfs-proxy-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down

0 comments on commit b8ccfad

Please sign in to comment.