diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-12-10 14:36:52 +0545 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-12-10 14:36:52 +0545 |
commit | 3b5c20e747bc33de4f4614c2da8d438bd082baaf (patch) | |
tree | b272e7754e3beaf9658a2ff8797f05aa7a370dfa | |
parent | 501a87864ed39d8417eb2d1c20f4b9f03febceac (diff) | |
download | acl-3b5c20e747bc33de4f4614c2da8d438bd082baaf.tar.gz |
tools: mark long_options static & const
This is read-only data, so don't include it in the read/write page.
-rw-r--r-- | tools/getfacl.c | 2 | ||||
-rw-r--r-- | tools/setfacl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/getfacl.c b/tools/getfacl.c index 63f0736..5a45c04 100644 --- a/tools/getfacl.c +++ b/tools/getfacl.c @@ -46,7 +46,7 @@ #endif #define POSIXLY_CMD_LINE_OPTIONS "d" -struct option long_options[] = { +static const struct option long_options[] = { #if !POSIXLY_CORRECT { "access", 0, 0, 'a' }, { "omit-header", 0, 0, 'c' }, diff --git a/tools/setfacl.c b/tools/setfacl.c index 0844ca2..fd0bf2e 100644 --- a/tools/setfacl.c +++ b/tools/setfacl.c @@ -46,7 +46,7 @@ #define POSIXLY_CMD_LINE_OPTIONS "-:bkndvhm:M:x:X:" #define POSIXLY_CMD_LINE_SPEC "[-bknd] {-m|-M|-x|-X ... } file ..." -struct option long_options[] = { +static const struct option long_options[] = { #if !POSIXLY_CORRECT { "set", 1, 0, 's' }, { "set-file", 1, 0, 'S' }, |