X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=selinux%2Fmatchpathcon.c;h=1532429b6bbb2d15c3530f427aeefffd27079580;hb=cc9205bda7c675e347516b93e865e462d2299a78;hp=2bc0a33049e6a789fa04c1816092215c795cedb6;hpb=fe7cd642b0b732f5d41403c2f6983ad676b69dd9;p=oweals%2Fbusybox.git diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c index 2bc0a3304..1532429b6 100644 --- a/selinux/matchpathcon.c +++ b/selinux/matchpathcon.c @@ -3,6 +3,7 @@ * based on libselinux-1.32 * Port to busybox: KaiGai Kohei * + * Licensed under GPLv2, see file LICENSE in this tarball for details. */ #include "libbb.h" @@ -17,7 +18,7 @@ static int print_matchpathcon(char *path, int noprint) if (!noprint) printf("%s\t%s\n", path, buf); else - printf("%s\n", buf); + puts(buf); freecon(buf); return 0; @@ -29,8 +30,8 @@ static int print_matchpathcon(char *path, int noprint) #define OPT_PREFIX (1<<3) /* -p */ #define OPT_VERIFY (1<<4) /* -V */ -int matchpathcon_main(int argc, char **argv); -int matchpathcon_main(int argc, char **argv) +int matchpathcon_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; +int matchpathcon_main(int argc UNUSED_PARAM, char **argv) { int error = 0; unsigned opts;