diff options
author | jedgar <jedgar@FreeBSD.org> | 2002-02-21 23:17:19 +0000 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2002-02-21 23:17:19 +0000 |
commit | d958ae799ceb2a35694212712ea44eb5ee94e847 (patch) | |
tree | 7e543f2025311de625138ca8efe7353755a977af /lib/libc/posix1e/acl_from_text.c | |
parent | 6452c2e85d04e3efcaffbbd49b4c693d65e8c0ef (diff) | |
download | FreeBSD-src-d958ae799ceb2a35694212712ea44eb5ee94e847.zip FreeBSD-src-d958ae799ceb2a35694212712ea44eb5ee94e847.tar.gz |
o style(9) and consistency fixes:
- if (!var) -> if (var == NULL)
- return val; -> return (val);
Reviewed by: rwatson
Obtained from: TrustedBSD Project
Diffstat (limited to 'lib/libc/posix1e/acl_from_text.c')
-rw-r--r-- | lib/libc/posix1e/acl_from_text.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/posix1e/acl_from_text.c b/lib/libc/posix1e/acl_from_text.c index ffceaa9..78a8bd0 100644 --- a/lib/libc/posix1e/acl_from_text.c +++ b/lib/libc/posix1e/acl_from_text.c @@ -123,11 +123,11 @@ acl_from_text(const char *buf_p) /* Local copy we can mess up. */ mybuf_p = strdup(buf_p); - if (!mybuf_p) + if (mybuf_p == NULL) return(NULL); acl = acl_init(3); - if (!acl) { + if (acl == NULL) { free(mybuf_p); return(NULL); } @@ -143,7 +143,7 @@ acl_from_text(const char *buf_p) while ((entry = strsep(¬comment, ","))) { /* Now split into three ':' delimited fields. */ tag = strsep(&entry, ":"); - if (!tag) { + if (tag == NULL) { errno = EINVAL; goto error_label; } @@ -158,7 +158,7 @@ acl_from_text(const char *buf_p) string_trim_trailing_whitespace(tag); qualifier = strsep(&entry, ":"); - if (!qualifier) { + if (qualifier == NULL) { errno = EINVAL; goto error_label; } @@ -166,7 +166,7 @@ acl_from_text(const char *buf_p) string_trim_trailing_whitespace(qualifier); permission = strsep(&entry, ":"); - if ((!permission) || (entry)) { + if (permission == NULL || entry) { errno = EINVAL; goto error_label; } |