diff options
author | kris <kris@FreeBSD.org> | 2001-05-20 05:13:21 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-05-20 05:13:21 +0000 |
commit | fe984982f453942927ba1ad762ef3ea981eaa1f6 (patch) | |
tree | f8d20f15aea22faf7ae0b349986bb933e398f85c /bin/setfacl | |
parent | 773b8c647e2deaafba8754fcbfe92988908169bb (diff) | |
download | FreeBSD-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/Makefile | 2 | ||||
-rw-r--r-- | bin/setfacl/file.c | 2 | ||||
-rw-r--r-- | bin/setfacl/setfacl.c | 2 |
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); |