aboutsummaryrefslogtreecommitdiff
path: root/selinux/setfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'selinux/setfiles.c')
-rw-r--r--selinux/setfiles.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index 905333f94..02bb9113f 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -99,7 +99,7 @@ enum {
99#define FLAG_R (option_mask32 & OPT_R) 99#define FLAG_R (option_mask32 & OPT_R)
100 100
101 101
102static void qprintf(const char *fmt, ...) 102static void qprintf(const char *fmt ATTRIBUTE_UNUSED, ...)
103{ 103{
104 /* quiet, do nothing */ 104 /* quiet, do nothing */
105} 105}
@@ -391,8 +391,11 @@ static int restore(const char *file)
391 * This function is called by recursive_action on each file during 391 * This function is called by recursive_action on each file during
392 * the directory traversal. 392 * the directory traversal.
393 */ 393 */
394static int apply_spec(const char *file, 394static int apply_spec(
395 struct stat *sb, void *userData, int depth) 395 const char *file,
396 struct stat *sb,
397 void *userData ATTRIBUTE_UNUSED,
398 int depth ATTRIBUTE_UNUSED)
396{ 399{
397 if (!follow_mounts) { 400 if (!follow_mounts) {
398 /* setfiles does not process across different mount points */ 401 /* setfiles does not process across different mount points */