diff options
author | trasz <trasz@FreeBSD.org> | 2010-06-03 14:29:17 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2010-06-03 14:29:17 +0000 |
commit | 307713b0cf837122c02128382f81fbe757863cb1 (patch) | |
tree | 52c585a6eb537ce710fd97e215843463b5f6f917 /lib/libc/posix1e/acl_support.h | |
parent | 26f044985faa2f6494d9f153cd2d95ed27c042d2 (diff) | |
download | FreeBSD-src-307713b0cf837122c02128382f81fbe757863cb1.zip FreeBSD-src-307713b0cf837122c02128382f81fbe757863cb1.tar.gz |
_posix1e_acl_sort() never returns anything other than 0; change its
return type to void and update callers. This simplifies code and
fixes one place where the returned value was not actually checked.
Found with: Coverity Prevent
CID: 4791
Diffstat (limited to 'lib/libc/posix1e/acl_support.h')
-rw-r--r-- | lib/libc/posix1e/acl_support.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/posix1e/acl_support.h b/lib/libc/posix1e/acl_support.h index 9826577..8f7dfed 100644 --- a/lib/libc/posix1e/acl_support.h +++ b/lib/libc/posix1e/acl_support.h @@ -50,7 +50,7 @@ int _nfs4_format_access_mask(char *str, size_t size, acl_perm_t var, int verbose int _nfs4_parse_flags(const char *str, acl_flag_t *var); int _nfs4_parse_access_mask(const char *str, acl_perm_t *var); int _posix1e_acl_check(acl_t acl); -int _posix1e_acl_sort(acl_t acl); +void _posix1e_acl_sort(acl_t acl); int _posix1e_acl(acl_t acl, acl_type_t type); int _posix1e_acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len, char *buf, int flags); |