diff options
author | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2002-02-17 20:05:20 +0000 |
---|---|---|
committer | Chris D. Faulhaber <jedgar@FreeBSD.org> | 2002-02-17 20:05:20 +0000 |
commit | e76872c11e7b31b3be19e77ad8dc35d8b882a1c0 (patch) | |
tree | e59b3f19ad17c44595cc8aaff83f81eac0a5b407 /lib/libc/posix1e/acl_delete_entry.c | |
parent | 3445a5f016b673039c50323c8a9ba991614b5fab (diff) |
Notes
Diffstat (limited to 'lib/libc/posix1e/acl_delete_entry.c')
-rw-r--r-- | lib/libc/posix1e/acl_delete_entry.c | 12 |
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 760078f17b06..7169c6f95367 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); } |