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_from_text.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_from_text.c')
-rw-r--r-- | lib/libc/posix1e/acl_from_text.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/posix1e/acl_from_text.c b/lib/libc/posix1e/acl_from_text.c index d4d9986..e35d150 100644 --- a/lib/libc/posix1e/acl_from_text.c +++ b/lib/libc/posix1e/acl_from_text.c @@ -118,12 +118,12 @@ acl_from_text(const char *buf_p) /* Local copy we can mess up. */ mybuf_p = strdup(buf_p); if (!mybuf_p) - return(0); + return(NULL); acl = acl_init(3); if (!acl) { free(mybuf_p); - return(0); + return(NULL); } /* Outer loop: delimit at \n boundaries. */ @@ -223,7 +223,7 @@ acl_from_text(const char *buf_p) error_label: acl_free(acl); free(mybuf_p); - return(0); + return(NULL); } |