From c90e1cf179187d5d188a3003db503ffd86d80cfe Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 22 Sep 2002 03:38:57 +0000 Subject: * fhandler.cc (fhandler_base::dup): Don't set handle on failure. Caller has already taken care of that. * fhandler_console.cc (fhandler_console::open): Initialize handles to NULL. (fhandler_console::close): Ditto. GNUify non-GNU formatted functions calls throughout. --- winsup/cygwin/sec_acl.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'winsup/cygwin/sec_acl.cc') diff --git a/winsup/cygwin/sec_acl.cc b/winsup/cygwin/sec_acl.cc index cd20cfd54..90b6ef082 100644 --- a/winsup/cygwin/sec_acl.cc +++ b/winsup/cygwin/sec_acl.cc @@ -86,13 +86,13 @@ setacl (const char *file, int nentries, __aclent16_t *aclbufp) __seterrno (); return -1; } - if (!SetSecurityDescriptorOwner(&sd, owner, FALSE)) + if (!SetSecurityDescriptorOwner (&sd, owner, FALSE)) { __seterrno (); return -1; } if (group - && !SetSecurityDescriptorGroup(&sd, group, FALSE)) + && !SetSecurityDescriptorGroup (&sd, group, FALSE)) { __seterrno (); return -1; @@ -538,7 +538,7 @@ acl_worker (const char *path, int cmd, int nentries, __aclent16_t *aclbufp, switch (cmd) { case SETACL: - if (!aclsort(nentries, 0, aclbufp)) + if (!aclsort (nentries, 0, aclbufp)) return setacl (real_path.get_win32 (), nentries, aclbufp); break; @@ -732,9 +732,9 @@ extern "C" int acecmp (const void *a1, const void *a2) { #define ace(i) ((const __aclent16_t *) a##i) - int ret = ace(1)->a_type - ace(2)->a_type; + int ret = ace (1)->a_type - ace (2)->a_type; if (!ret) - ret = ace(1)->a_id - ace(2)->a_id; + ret = ace (1)->a_id - ace (2)->a_id; return ret; #undef ace } @@ -750,7 +750,7 @@ aclsort (int nentries, int, __aclent16_t *aclbufp) set_errno (EINVAL); return -1; } - qsort((void *) aclbufp, nentries, sizeof (__aclent16_t), acecmp); + qsort ((void *) aclbufp, nentries, sizeof (__aclent16_t), acecmp); return 0; } @@ -791,7 +791,7 @@ acltomode (__aclent16_t *aclbufp, int nentries, mode_t *modep) extern "C" int -aclfrommode(__aclent16_t *aclbufp, int nentries, mode_t *modep) +aclfrommode (__aclent16_t *aclbufp, int nentries, mode_t *modep) { int pos; -- cgit v1.2.3