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/openrc-run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rc/openrc-run.c') diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c index 1958dbc8..7ef194c8 100644 --- a/src/rc/openrc-run.c +++ b/src/rc/openrc-run.c @@ -63,7 +63,7 @@ const char *applet = NULL; const char *extraopts = "stop | start | restart | describe | zap"; -const char *getoptstring = "dDsSvl:Z" getoptstring_COMMON; +const char getoptstring[] = "dDsSvl:Z" getoptstring_COMMON; const struct option longopts[] = { { "debug", 0, NULL, 'd'}, { "dry-run", 0, NULL, 'Z'}, -- cgit v1.2.3