diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-01-17 02:40:39 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-01-17 02:40:39 +0000 |
commit | 80d719db5a213af2333a8074c09c1e16c09efbe2 (patch) | |
tree | cde2a78ee050180356a043979451e4bfc8568f7c /lib/libc/posix1e/acl_get.c | |
parent | a3a305a2b457f0e59d2ffde35995c5ec456b9267 (diff) | |
download | FreeBSD-src-80d719db5a213af2333a8074c09c1e16c09efbe2.zip FreeBSD-src-80d719db5a213af2333a8074c09c1e16c09efbe2.tar.gz |
o When returning NULL, return (NULL) instead of return (0).
Submitted by: jedgar
Obtained from: TrustedBSD Project
Diffstat (limited to 'lib/libc/posix1e/acl_get.c')
-rw-r--r-- | lib/libc/posix1e/acl_get.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/posix1e/acl_get.c b/lib/libc/posix1e/acl_get.c index 494eed7..46882d6 100644 --- a/lib/libc/posix1e/acl_get.c +++ b/lib/libc/posix1e/acl_get.c @@ -44,13 +44,13 @@ acl_get_file(const char *path_p, acl_type_t type) aclp = acl_init(ACL_MAX_ENTRIES); if (!aclp) { - return (0); + return (NULL); } error = __acl_get_file(path_p, type, aclp); if (error) { acl_free(aclp); - return (0); + return (NULL); } return (aclp); @@ -64,13 +64,13 @@ acl_get_fd(int fd) aclp = acl_init(ACL_MAX_ENTRIES); if (!aclp) { - return (0); + return (NULL); } error = __acl_get_fd(fd, ACL_TYPE_ACCESS, aclp); if (error) { acl_free(aclp); - return (0); + return (NULL); } return (aclp); @@ -84,13 +84,13 @@ acl_get_fd_np(int fd, acl_type_t type) aclp = acl_init(ACL_MAX_ENTRIES); if (!aclp) { - return (0); + return (NULL); } error = __acl_get_fd(fd, type, aclp); if (error) { acl_free(aclp); - return (0); + return (NULL); } return (aclp); |