diff options
Diffstat (limited to 'selinux')
-rw-r--r-- | selinux/chcon.c | 8 | ||||
-rw-r--r-- | selinux/getenforce.c | 2 | ||||
-rw-r--r-- | selinux/load_policy.c | 2 | ||||
-rw-r--r-- | selinux/matchpathcon.c | 2 | ||||
-rw-r--r-- | selinux/runcon.c | 2 | ||||
-rw-r--r-- | selinux/selinuxenabled.c | 2 | ||||
-rw-r--r-- | selinux/sestatus.c | 2 | ||||
-rw-r--r-- | selinux/setfiles.c | 6 |
8 files changed, 13 insertions, 13 deletions
diff --git a/selinux/chcon.c b/selinux/chcon.c index 505ae4f32..80a030fde 100644 --- a/selinux/chcon.c +++ b/selinux/chcon.c | |||
@@ -30,9 +30,9 @@ static char *specified_context = NULL; | |||
30 | 30 | ||
31 | static int FAST_FUNC change_filedir_context( | 31 | static int FAST_FUNC change_filedir_context( |
32 | const char *fname, | 32 | const char *fname, |
33 | struct stat *stbuf ATTRIBUTE_UNUSED, | 33 | struct stat *stbuf UNUSED_PARAM, |
34 | void *userData ATTRIBUTE_UNUSED, | 34 | void *userData UNUSED_PARAM, |
35 | int depth ATTRIBUTE_UNUSED) | 35 | int depth UNUSED_PARAM) |
36 | { | 36 | { |
37 | context_t context = NULL; | 37 | context_t context = NULL; |
38 | security_context_t file_context = NULL; | 38 | security_context_t file_context = NULL; |
@@ -125,7 +125,7 @@ static const char chcon_longopts[] ALIGN1 = | |||
125 | #endif | 125 | #endif |
126 | 126 | ||
127 | int chcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 127 | int chcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
128 | int chcon_main(int argc ATTRIBUTE_UNUSED, char **argv) | 128 | int chcon_main(int argc UNUSED_PARAM, char **argv) |
129 | { | 129 | { |
130 | char *reference_file; | 130 | char *reference_file; |
131 | char *fname; | 131 | char *fname; |
diff --git a/selinux/getenforce.c b/selinux/getenforce.c index a39ce6d2b..21075cfd8 100644 --- a/selinux/getenforce.c +++ b/selinux/getenforce.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #include "libbb.h" | 9 | #include "libbb.h" |
10 | 10 | ||
11 | int getenforce_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 11 | int getenforce_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
12 | int getenforce_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) | 12 | int getenforce_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
13 | { | 13 | { |
14 | int rc; | 14 | int rc; |
15 | 15 | ||
diff --git a/selinux/load_policy.c b/selinux/load_policy.c index c5b0e7a1b..b7a5c6eef 100644 --- a/selinux/load_policy.c +++ b/selinux/load_policy.c | |||
@@ -5,7 +5,7 @@ | |||
5 | #include "libbb.h" | 5 | #include "libbb.h" |
6 | 6 | ||
7 | int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 7 | int load_policy_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
8 | int load_policy_main(int argc, char **argv ATTRIBUTE_UNUSED) | 8 | int load_policy_main(int argc, char **argv UNUSED_PARAM) |
9 | { | 9 | { |
10 | int rc; | 10 | int rc; |
11 | 11 | ||
diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c index e0b374add..5cfd52aba 100644 --- a/selinux/matchpathcon.c +++ b/selinux/matchpathcon.c | |||
@@ -30,7 +30,7 @@ static int print_matchpathcon(char *path, int noprint) | |||
30 | #define OPT_VERIFY (1<<4) /* -V */ | 30 | #define OPT_VERIFY (1<<4) /* -V */ |
31 | 31 | ||
32 | int matchpathcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 32 | int matchpathcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
33 | int matchpathcon_main(int argc ATTRIBUTE_UNUSED, char **argv) | 33 | int matchpathcon_main(int argc UNUSED_PARAM, char **argv) |
34 | { | 34 | { |
35 | int error = 0; | 35 | int error = 0; |
36 | unsigned opts; | 36 | unsigned opts; |
diff --git a/selinux/runcon.c b/selinux/runcon.c index 0f573d1ec..a9471ef0c 100644 --- a/selinux/runcon.c +++ b/selinux/runcon.c | |||
@@ -88,7 +88,7 @@ static const char runcon_longopts[] ALIGN1 = | |||
88 | #define OPTS_CONTEXT_COMPONENT (OPTS_ROLE | OPTS_TYPE | OPTS_USER | OPTS_RANGE) | 88 | #define OPTS_CONTEXT_COMPONENT (OPTS_ROLE | OPTS_TYPE | OPTS_USER | OPTS_RANGE) |
89 | 89 | ||
90 | int runcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 90 | int runcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
91 | int runcon_main(int argc ATTRIBUTE_UNUSED, char **argv) | 91 | int runcon_main(int argc UNUSED_PARAM, char **argv) |
92 | { | 92 | { |
93 | char *role = NULL; | 93 | char *role = NULL; |
94 | char *range = NULL; | 94 | char *range = NULL; |
diff --git a/selinux/selinuxenabled.c b/selinux/selinuxenabled.c index c6e947ce5..ea233d891 100644 --- a/selinux/selinuxenabled.c +++ b/selinux/selinuxenabled.c | |||
@@ -8,7 +8,7 @@ | |||
8 | #include "libbb.h" | 8 | #include "libbb.h" |
9 | 9 | ||
10 | int selinuxenabled_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 10 | int selinuxenabled_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
11 | int selinuxenabled_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) | 11 | int selinuxenabled_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
12 | { | 12 | { |
13 | return !is_selinux_enabled(); | 13 | return !is_selinux_enabled(); |
14 | } | 14 | } |
diff --git a/selinux/sestatus.c b/selinux/sestatus.c index ec39afc21..3b027eeb2 100644 --- a/selinux/sestatus.c +++ b/selinux/sestatus.c | |||
@@ -159,7 +159,7 @@ static void display_verbose(void) | |||
159 | } | 159 | } |
160 | 160 | ||
161 | int sestatus_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 161 | int sestatus_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
162 | int sestatus_main(int argc ATTRIBUTE_UNUSED, char **argv) | 162 | int sestatus_main(int argc UNUSED_PARAM, char **argv) |
163 | { | 163 | { |
164 | unsigned opts; | 164 | unsigned opts; |
165 | const char *pol_path; | 165 | const char *pol_path; |
diff --git a/selinux/setfiles.c b/selinux/setfiles.c index 991c13cd7..d567f83aa 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 | ||
102 | static void qprintf(const char *fmt ATTRIBUTE_UNUSED, ...) | 102 | static void qprintf(const char *fmt UNUSED_PARAM, ...) |
103 | { | 103 | { |
104 | /* quiet, do nothing */ | 104 | /* quiet, do nothing */ |
105 | } | 105 | } |
@@ -394,8 +394,8 @@ static int restore(const char *file) | |||
394 | static int FAST_FUNC apply_spec( | 394 | static int FAST_FUNC apply_spec( |
395 | const char *file, | 395 | const char *file, |
396 | struct stat *sb, | 396 | struct stat *sb, |
397 | void *userData ATTRIBUTE_UNUSED, | 397 | void *userData UNUSED_PARAM, |
398 | int depth ATTRIBUTE_UNUSED) | 398 | int depth UNUSED_PARAM) |
399 | { | 399 | { |
400 | if (!follow_mounts) { | 400 | if (!follow_mounts) { |
401 | /* setfiles does not process across different mount points */ | 401 | /* setfiles does not process across different mount points */ |