summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_delete_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_delete_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_delete_entry.c')
-rw-r--r--lib/libc/posix1e/acl_delete_entry.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/posix1e/acl_delete_entry.c b/lib/libc/posix1e/acl_delete_entry.c
index 760078f..7169c6f 100644
--- a/lib/libc/posix1e/acl_delete_entry.c
+++ b/lib/libc/posix1e/acl_delete_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,9 +43,9 @@ acl_delete_entry(acl_t acl, acl_entry_t entry_d)
struct acl *acl_int;
int i;
- if (!acl || !entry_d) {
+ if (acl == NULL || entry_d == NULL) {
errno = EINVAL;
- return -1;
+ return (-1);
}
acl_int = &acl->ats_acl;
@@ -53,7 +53,7 @@ acl_delete_entry(acl_t acl, acl_entry_t entry_d)
if ((acl->ats_acl.acl_cnt < 1) ||
(acl->ats_acl.acl_cnt > ACL_MAX_ENTRIES)) {
errno = EINVAL;
- return -1;
+ return (-1);
}
for (i = 0; i < acl->ats_acl.acl_cnt; i++) {
/* if this is our entry... */
@@ -68,11 +68,11 @@ acl_delete_entry(acl_t acl, acl_entry_t entry_d)
bzero(&acl->ats_acl.acl_entry[i],
sizeof(struct acl_entry));
acl->ats_cur_entry = 0;
- return 0;
+ return (0);
}
}
errno = EINVAL;
- return -1;
+ return (-1);
}
OpenPOWER on IntegriCloud