summaryrefslogtreecommitdiffstats
path: root/bin/setfacl
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2001-05-20 05:13:21 +0000
committerkris <kris@FreeBSD.org>2001-05-20 05:13:21 +0000
commitfe984982f453942927ba1ad762ef3ea981eaa1f6 (patch)
treef8d20f15aea22faf7ae0b349986bb933e398f85c /bin/setfacl
parent773b8c647e2deaafba8754fcbfe92988908169bb (diff)
downloadFreeBSD-src-fe984982f453942927ba1ad762ef3ea981eaa1f6.zip
FreeBSD-src-fe984982f453942927ba1ad762ef3ea981eaa1f6.tar.gz
Silence WARNS=2 and BDECFLAGS on alpha and i386
MFC After: 1 week
Diffstat (limited to 'bin/setfacl')
-rw-r--r--bin/setfacl/Makefile2
-rw-r--r--bin/setfacl/file.c2
-rw-r--r--bin/setfacl/setfacl.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/bin/setfacl/Makefile b/bin/setfacl/Makefile
index ff67650..5ac45ad 100644
--- a/bin/setfacl/Makefile
+++ b/bin/setfacl/Makefile
@@ -3,4 +3,6 @@
PROG= setfacl
SRCS= file.c mask.c merge.c remove.c setfacl.c util.c
+WARNS= 2
+
.include <bsd.prog.mk>
diff --git a/bin/setfacl/file.c b/bin/setfacl/file.c
index 776efdc..3e3c805 100644
--- a/bin/setfacl/file.c
+++ b/bin/setfacl/file.c
@@ -59,7 +59,7 @@ get_acl_from_file(const char *filename)
err(EX_OSERR, "fopen() %s failed", filename);
}
- fread(buf, sizeof(buf), 1, file);
+ fread(buf, sizeof(buf), (size_t)1, file);
if (ferror(file)) {
fclose(file);
err(EX_USAGE, "error reading from %s", filename);
diff --git a/bin/setfacl/setfacl.c b/bin/setfacl/setfacl.c
index b2d8578..072bca8 100644
--- a/bin/setfacl/setfacl.c
+++ b/bin/setfacl/setfacl.c
@@ -173,7 +173,7 @@ main(int argc, char *argv[])
err(EX_USAGE, "cannot have more than one stdin");
have_stdin = 1;
bzero(&filename, sizeof(filename));
- while (fgets(filename, sizeof(filename), stdin)) {
+ while (fgets(filename, (int)sizeof(filename), stdin)) {
/* remove the \n */
filename[strlen(filename) - 1] = '\0';
add_filename(filename);
OpenPOWER on IntegriCloud