summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_to_text.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-01-17 02:40:39 +0000
committerrwatson <rwatson@FreeBSD.org>2001-01-17 02:40:39 +0000
commit80d719db5a213af2333a8074c09c1e16c09efbe2 (patch)
treecde2a78ee050180356a043979451e4bfc8568f7c /lib/libc/posix1e/acl_to_text.c
parenta3a305a2b457f0e59d2ffde35995c5ec456b9267 (diff)
downloadFreeBSD-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_to_text.c')
-rw-r--r--lib/libc/posix1e/acl_to_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/posix1e/acl_to_text.c b/lib/libc/posix1e/acl_to_text.c
index bb5a546..d5a1e32 100644
--- a/lib/libc/posix1e/acl_to_text.c
+++ b/lib/libc/posix1e/acl_to_text.c
@@ -61,7 +61,7 @@ acl_to_text(acl_t acl, ssize_t *len_p)
buf = strdup("");
if (!buf)
- return(0);
+ return(NULL);
mask_perm = ACL_PERM_BITS; /* effective is regular if no mask */
for (i = 0; i < acl->acl_cnt; i++)
@@ -218,5 +218,5 @@ acl_to_text(acl_t acl, ssize_t *len_p)
error_label:
/* jump to here sets errno already, we just clean up */
if (buf) free(buf);
- return (0);
+ return (NULL);
}
OpenPOWER on IntegriCloud