diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2013-03-21 22:44:33 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2013-03-21 22:44:33 +0000 |
commit | b4b2596b9766ae302c0943871516471bb0d6466c (patch) | |
tree | 1c36abb6f394391f7fb768b78ab2d383820e11cb /tools/regression/pjdfstest/pjdfstest.c | |
parent | e808788c05fed17c4269af808ad7f2183335e9af (diff) | |
download | src-b4b2596b9766ae302c0943871516471bb0d6466c.tar.gz src-b4b2596b9766ae302c0943871516471bb0d6466c.zip |
- Make 'flags' argument to chflags(2), fchflags(2) and lchflags(2) of type
u_long. Before this change it was of type int for syscalls, but prototypes
in sys/stat.h and documentation for chflags(2) and fchflags(2) (but not
for lchflags(2)) stated that it was u_long. Now some related functions
use u_long type for flags (strtofflags(3), fflagstostr(3)).
- Make path argument of type 'const char *' for consistency.
Discussed on: arch
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=248597
Diffstat (limited to 'tools/regression/pjdfstest/pjdfstest.c')
-rw-r--r-- | tools/regression/pjdfstest/pjdfstest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/regression/pjdfstest/pjdfstest.c b/tools/regression/pjdfstest/pjdfstest.c index 6eafc8c7204b..b0b083dd1904 100644 --- a/tools/regression/pjdfstest/pjdfstest.c +++ b/tools/regression/pjdfstest/pjdfstest.c @@ -831,7 +831,8 @@ call_syscall(struct syscall_desc *scall, char *argv[]) #endif #ifdef HAS_LCHFLAGS case ACTION_LCHFLAGS: - rval = lchflags(STR(0), (int)str2flags(chflags_flags, STR(1))); + rval = lchflags(STR(0), + (unsigned long)str2flags(chflags_flags, STR(1))); break; #endif case ACTION_TRUNCATE: |