acl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH acl/committed] tools: mark long_options static & const


From: Mike Frysinger
Subject: [PATCH acl/committed] tools: mark long_options static & const
Date: Sat, 10 Dec 2022 14:38:21 +0545

This is read-only data, so don't include it in the read/write page.
---
 tools/getfacl.c | 2 +-
 tools/setfacl.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/getfacl.c b/tools/getfacl.c
index 63f0736332fa..5a45c046c414 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 0844ca250476..fd0bf2e9e0c3 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' },
-- 
2.38.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]