summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_from_text.c
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2002-02-21 23:17:19 +0000
committerjedgar <jedgar@FreeBSD.org>2002-02-21 23:17:19 +0000
commitd958ae799ceb2a35694212712ea44eb5ee94e847 (patch)
tree7e543f2025311de625138ca8efe7353755a977af /lib/libc/posix1e/acl_from_text.c
parent6452c2e85d04e3efcaffbbd49b4c693d65e8c0ef (diff)
downloadFreeBSD-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.c10
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(&notcomment, ","))) {
/* 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;
}
OpenPOWER on IntegriCloud