acl-devel
[Top][All Lists]
Advanced

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

[PATCH acl] tools: move do_set externs to common header


From: Mike Frysinger
Subject: [PATCH acl] tools: move do_set externs to common header
Date: Wed, 31 Jan 2024 23:50:20 -0500

This helps enforce the types that do_set.c expects are what modules
that include do_set.h actually export.

Also trim unused print_options since do_set doesn't use it.
---
 tools/do_set.c | 5 -----
 tools/do_set.h | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/do_set.c b/tools/do_set.c
index b51003275641..87f28b414f55 100644
--- a/tools/do_set.c
+++ b/tools/do_set.c
@@ -40,11 +40,6 @@
 #include "walk_tree.h"
 
 
-extern const char *progname;
-extern int opt_recalculate;
-extern int opt_test;
-extern int print_options;
-
 acl_entry_t
 find_entry(
        acl_t acl,
diff --git a/tools/do_set.h b/tools/do_set.h
index 15566f3759ea..1dba42d041a0 100644
--- a/tools/do_set.h
+++ b/tools/do_set.h
@@ -32,4 +32,9 @@ struct do_set_args {
 extern int do_set(const char *path_p, const struct stat *stat_p, int flags,
                  void *arg);
 
+/* We need these exported to us. */
+extern const char *progname;
+extern int opt_recalculate;
+extern int opt_test;
+
 #endif  /* __DO_SET_H */
-- 
2.43.0




reply via email to

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