diff options
author | kris <kris@FreeBSD.org> | 2001-05-20 04:47:55 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-05-20 04:47:55 +0000 |
commit | 3b7c4b5c80ebd67c6d85c79cbe1d0ee2af571242 (patch) | |
tree | 5deea92e85f49953f98031e5a278c8d02f9cc80b | |
parent | 64971df121a04df55a87ca34f6508ceaf0b85824 (diff) | |
download | FreeBSD-src-3b7c4b5c80ebd67c6d85c79cbe1d0ee2af571242.zip FreeBSD-src-3b7c4b5c80ebd67c6d85c79cbe1d0ee2af571242.tar.gz |
Silence warnings on alpha. Unfortunately we can't add WARNS to this
because of that stupid mode_t warning bug.
MFC After: 1 week
-rw-r--r-- | bin/getfacl/getfacl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/getfacl/getfacl.c b/bin/getfacl/getfacl.c index 19a3353..99e9ce2 100644 --- a/bin/getfacl/getfacl.c +++ b/bin/getfacl/getfacl.c @@ -38,6 +38,7 @@ #include <errno.h> #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <unistd.h> int more_than_one = 0; @@ -198,7 +199,7 @@ print_acl_from_stdin(acl_type_t type) int carried_error = 0; pathname[sizeof(pathname) - 1] = '\0'; - while (fgets(pathname, sizeof(pathname), stdin)) { + while (fgets(pathname, (int)sizeof(pathname), stdin)) { /* remove the \n */ pathname[strlen(pathname) - 1] = '\0'; if (print_acl(pathname, type) == -1) { |