From d017d5af9cce1cba960ee8561ec08bf8f04a93b2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Dec 2021 20:03:35 -0500 Subject: 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. --- src/rc/mountinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rc/mountinfo.c') 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'}, -- cgit v1.2.3