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/rc-status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rc/rc-status.c') diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c index f086887e..4e47a230 100644 --- a/src/rc/rc-status.c +++ b/src/rc/rc-status.c @@ -35,7 +35,7 @@ enum format_t { const char *applet = NULL; const char *extraopts = NULL; -const char *getoptstring = "acf:lmrsSu" getoptstring_COMMON; +const char getoptstring[] = "acf:lmrsSu" getoptstring_COMMON; const struct option longopts[] = { {"all", 0, NULL, 'a'}, {"crashed", 0, NULL, 'c'}, -- cgit v1.2.3