diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-12-20 20:03:35 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-12-20 20:03:35 -0500 |
commit | d017d5af9cce1cba960ee8561ec08bf8f04a93b2 (patch) | |
tree | 0e155458441c85459a4d43f12bb0ff8fbf846772 /src/rc/rc.c | |
parent | 32aeb7407bf5cdc354694b73f4c36376922f7c05 (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/rc.c')
-rw-r--r-- | src/rc/rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c index fd2081ca..056b58f1 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -56,7 +56,7 @@ static const char rc_copyright[] = "Copyright (c) 2007-2008 Roy Marples"; #include "_usage.h" const char *extraopts = NULL; -const char *getoptstring = "a:no:s:S" getoptstring_COMMON; +const char getoptstring[] = "a:no:s:S" getoptstring_COMMON; const struct option longopts[] = { { "no-stop", 0, NULL, 'n' }, { "override", 1, NULL, 'o' }, |