summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_set.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_set.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_set.c')
-rw-r--r--lib/libc/posix1e/acl_set.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/posix1e/acl_set.c b/lib/libc/posix1e/acl_set.c
index 39fa3a9..c9a2885 100644
--- a/lib/libc/posix1e/acl_set.c
+++ b/lib/libc/posix1e/acl_set.c
@@ -112,12 +112,12 @@ acl_set_permset(acl_entry_t entry_d, acl_permset_t permset_d)
if (!entry_d) {
errno = EINVAL;
- return -1;
+ return (-1);
}
entry_d->ae_perm = *permset_d;
- return 0;
+ return (0);
}
/*
@@ -129,7 +129,7 @@ acl_set_qualifier(acl_entry_t entry_d, const void *tag_qualifier_p)
{
if (!entry_d || !tag_qualifier_p) {
errno = EINVAL;
- return -1;
+ return (-1);
}
switch(entry_d->ae_tag) {
@@ -139,10 +139,10 @@ acl_set_qualifier(acl_entry_t entry_d, const void *tag_qualifier_p)
break;
default:
errno = EINVAL;
- return -1;
+ return (-1);
}
- return 0;
+ return (0);
}
/*
@@ -153,9 +153,9 @@ int
acl_set_tag_type(acl_entry_t entry_d, acl_tag_t tag_type)
{
- if (!entry_d) {
+ if (entry_d == NULL) {
errno = EINVAL;
- return -1;
+ return (-1);
}
switch(tag_type) {
@@ -166,9 +166,9 @@ acl_set_tag_type(acl_entry_t entry_d, acl_tag_t tag_type)
case ACL_MASK:
case ACL_OTHER:
entry_d->ae_tag = tag_type;
- return 0;
+ return (0);
}
errno = EINVAL;
- return -1;
+ return (-1);
}
OpenPOWER on IntegriCloud