aboutsummaryrefslogtreecommitdiff
path: root/src/rc/mountinfo.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-12-20 20:03:35 -0500
committerMike Frysinger <vapier@gentoo.org>2021-12-20 20:03:35 -0500
commitd017d5af9cce1cba960ee8561ec08bf8f04a93b2 (patch)
tree0e155458441c85459a4d43f12bb0ff8fbf846772 /src/rc/mountinfo.c
parent32aeb7407bf5cdc354694b73f4c36376922f7c05 (diff)
change getopt definition to elide pointer storage
Make this a const pointer to the storage directly instead of a pointer variable that points to the storage. Makes the code slightly smaller.
Diffstat (limited to 'src/rc/mountinfo.c')
-rw-r--r--src/rc/mountinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/mountinfo.c b/src/rc/mountinfo.c
index 5bf97386..87b41d1c 100644
--- a/src/rc/mountinfo.c
+++ b/src/rc/mountinfo.c
@@ -48,7 +48,7 @@
const char *applet = NULL;
const char *procmounts = "/proc/mounts";
const char *extraopts = "[mount1] [mount2] ...";
-const char *getoptstring = "f:F:n:N:o:O:p:P:iste:E:" getoptstring_COMMON;
+const char getoptstring[] = "f:F:n:N:o:O:p:P:iste:E:" getoptstring_COMMON;
const struct option longopts[] = {
{ "fstype-regex", 1, NULL, 'f'},
{ "skip-fstype-regex", 1, NULL, 'F'},