summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_entry.c
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2002-02-17 20:05:20 +0000
committerjedgar <jedgar@FreeBSD.org>2002-02-17 20:05:20 +0000
commit64ebd6e401d3a3d61fd6d720e9cf2afe1c1fe916 (patch)
treee59b3f19ad17c44595cc8aaff83f81eac0a5b407 /lib/libc/posix1e/acl_entry.c
parent416a72d401bfdb757b0d33140ad1ac0b7c665e1f (diff)
downloadFreeBSD-src-64ebd6e401d3a3d61fd6d720e9cf2afe1c1fe916.zip
FreeBSD-src-64ebd6e401d3a3d61fd6d720e9cf2afe1c1fe916.tar.gz
o style and consistency fixes:
- if (!var) -> if (var == NULL) - return val; -> return (val); o update copyright
Diffstat (limited to 'lib/libc/posix1e/acl_entry.c')
-rw-r--r--lib/libc/posix1e/acl_entry.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/posix1e/acl_entry.c b/lib/libc/posix1e/acl_entry.c
index 337340d..3962da6 100644
--- a/lib/libc/posix1e/acl_entry.c
+++ b/lib/libc/posix1e/acl_entry.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001 Chris D. Faulhaber
+ * Copyright (c) 2001-2002 Chris D. Faulhaber
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -43,16 +43,16 @@ acl_create_entry(acl_t *acl_p, acl_entry_t *entry_p)
{
struct acl *acl_int;
- if (!acl_p) {
+ if (acl_p == NULL) {
errno = EINVAL;
- return -1;
+ return (-1);
}
acl_int = &(*acl_p)->ats_acl;
if ((acl_int->acl_cnt >= ACL_MAX_ENTRIES) || (acl_int->acl_cnt < 0)) {
errno = EINVAL;
- return -1;
+ return (-1);
}
*entry_p = &acl_int->acl_entry[acl_int->acl_cnt++];
@@ -63,7 +63,7 @@ acl_create_entry(acl_t *acl_p, acl_entry_t *entry_p)
(*acl_p)->ats_cur_entry = 0;
- return 0;
+ return (0);
}
/*
@@ -75,9 +75,9 @@ acl_get_entry(acl_t acl, int entry_id, acl_entry_t *entry_p)
{
struct acl *acl_int;
- if (!acl) {
+ if (acl == NULL) {
errno = EINVAL;
- return -1;
+ return (-1);
}
acl_int = &acl->ats_acl;
@@ -89,9 +89,9 @@ acl_get_entry(acl_t acl, int entry_id, acl_entry_t *entry_p)
if (acl->ats_cur_entry >= acl->ats_acl.acl_cnt)
return 0;
*entry_p = &acl_int->acl_entry[acl->ats_cur_entry++];
- return 1;
+ return (1);
}
errno = EINVAL;
- return -1;
+ return (-1);
}
OpenPOWER on IntegriCloud