Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-04-05 08:48:02 +0400
committerChristopher Faylor <me@cgf.cx>2005-04-05 08:48:02 +0400
commitf45c299dbe093359db1f9bf4e06daa5129a17f16 (patch)
treef772869920739181209455cd2e2dce444986b5d2 /winsup/cygwin/grp.cc
parent322c131f9f8ec512b0b319aa383d70f8c8e60fbd (diff)
* sync.h (muto::initforce): Force initialization even when name != NULL.
* grp.cc (pwdgrp::pwdgrp): Use initforce since the enclosing structure is !NO_COPY.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r--winsup/cygwin/grp.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc
index 5f45a31b3..190d9cb26 100644
--- a/winsup/cygwin/grp.cc
+++ b/winsup/cygwin/grp.cc
@@ -111,7 +111,7 @@ pwdgrp::pwdgrp (passwd *&pbuf) :
{
read = &pwdgrp::read_passwd;
parse = &pwdgrp::parse_passwd;
- pglock.init ("pwd_lock");
+ pglock.initforce ("pwd_lock");
}
pwdgrp::pwdgrp (__group32 *&gbuf) :
@@ -119,7 +119,7 @@ pwdgrp::pwdgrp (__group32 *&gbuf) :
{
read = &pwdgrp::read_group;
parse = &pwdgrp::parse_group;
- pglock.init ("grp_lock");
+ pglock.initforce ("grp_lock");
}
struct __group32 *