diff options
author | jedgar <jedgar@FreeBSD.org> | 2002-02-17 20:05:20 +0000 |
---|---|---|
committer | jedgar <jedgar@FreeBSD.org> | 2002-02-17 20:05:20 +0000 |
commit | 64ebd6e401d3a3d61fd6d720e9cf2afe1c1fe916 (patch) | |
tree | e59b3f19ad17c44595cc8aaff83f81eac0a5b407 /lib/libc/posix1e/acl_copy.c | |
parent | 416a72d401bfdb757b0d33140ad1ac0b7c665e1f (diff) | |
download | FreeBSD-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_copy.c')
-rw-r--r-- | lib/libc/posix1e/acl_copy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/posix1e/acl_copy.c b/lib/libc/posix1e/acl_copy.c index 800648a..15b9d9c 100644 --- a/lib/libc/posix1e/acl_copy.c +++ b/lib/libc/posix1e/acl_copy.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 @@ -42,16 +42,16 @@ int acl_copy_entry(acl_entry_t dest_d, acl_entry_t src_d) { - if (!src_d || !dest_d || (src_d == dest_d)) { + if (src_d == NULL || dest_d == NULL || src_d == dest_d) { errno = EINVAL; - return -1; + return (-1); } dest_d->ae_tag = src_d->ae_tag; dest_d->ae_id = src_d->ae_id; dest_d->ae_perm = src_d->ae_perm; - return 0; + return (0); } ssize_t @@ -59,7 +59,7 @@ acl_copy_ext(void *buf_p, acl_t acl, ssize_t size) { errno = ENOSYS; - return -1; + return (-1); } acl_t @@ -67,5 +67,5 @@ acl_copy_int(const void *buf_p) { errno = ENOSYS; - return NULL; + return (NULL); } |