X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=selinux%2Fchcon.c;h=55c2522f66642a83a520fb951ae3981b92dbed76;hb=5a49d284a6a9f6cf2076f23561f95aebdfd44592;hp=3609880cbc9b9b670c625c64aa21ad86c3e3e078;hpb=dd5e11bb053e8dd278662b1ba69d04b6c5d9b3ff;p=oweals%2Fbusybox.git diff --git a/selinux/chcon.c b/selinux/chcon.c index 3609880cb..55c2522f6 100644 --- a/selinux/chcon.c +++ b/selinux/chcon.c @@ -4,6 +4,8 @@ * Port to busybox: KaiGai Kohei * * Copyright (C) 2006 - 2007 KaiGai Kohei + * + * Licensed under GPLv2, see file LICENSE in this tarball for details. */ #include #include @@ -28,7 +30,11 @@ static char *type = NULL; static char *range = NULL; static char *specified_context = NULL; -static int change_filedir_context(const char *fname, struct stat *stbuf, void *userData, int depth) +static int FAST_FUNC change_filedir_context( + const char *fname, + struct stat *stbuf UNUSED_PARAM, + void *userData UNUSED_PARAM, + int depth UNUSED_PARAM) { context_t context = NULL; security_context_t file_context = NULL; @@ -120,8 +126,8 @@ static const char chcon_longopts[] ALIGN1 = ; #endif -int chcon_main(int argc, char **argv); -int chcon_main(int argc, char **argv) +int chcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; +int chcon_main(int argc UNUSED_PARAM, char **argv) { char *reference_file; char *fname;