diff options
author | Christopher Faylor <me@cgf.cx> | 2003-01-17 21:05:32 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-01-17 21:05:32 +0300 |
commit | e9152439113f89322368774977e52f339d88f382 (patch) | |
tree | 11e95d6838b49212bcf9ba24a999de53254aed0d /winsup/cygwin/pwdgrp.h | |
parent | afa378e74a5bf8126053ee47a1be536d7cdcd822 (diff) |
* dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.
* grp.cc: Change most statics to NO_COPY throughout.
* passwd.cc: Ditto.
* pwdgrp.h: Change some BOOLs to bools.
(pwdgrp::pwdgrp): Remove unneeded constructor.
* passwd.cc: Change BOOL to bool throughout.
Diffstat (limited to 'winsup/cygwin/pwdgrp.h')
-rw-r--r-- | winsup/cygwin/pwdgrp.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h index 31c78908a..7f7434b80 100644 --- a/winsup/cygwin/pwdgrp.h +++ b/winsup/cygwin/pwdgrp.h @@ -13,11 +13,11 @@ details. */ /* These functions are needed to allow searching and walking through the passwd and group lists */ extern struct passwd *internal_getpwsid (cygsid &); -extern struct passwd *internal_getpwnam (const char *, BOOL = FALSE); -extern struct passwd *internal_getpwuid (__uid32_t, BOOL = FALSE); +extern struct passwd *internal_getpwnam (const char *, bool = FALSE); +extern struct passwd *internal_getpwuid (__uid32_t, bool = FALSE); extern struct __group32 *internal_getgrsid (cygsid &); -extern struct __group32 *internal_getgrgid (__gid32_t gid, BOOL = FALSE); -extern struct __group32 *internal_getgrnam (const char *, BOOL = FALSE); +extern struct __group32 *internal_getgrgid (__gid32_t gid, bool = FALSE); +extern struct __group32 *internal_getgrnam (const char *, bool = FALSE); extern struct __group32 *internal_getgrent (int); int internal_getgroups (int, __gid32_t *, cygsid * = NULL); @@ -70,8 +70,7 @@ class pwdgrp } public: - pwdgrp () : state (uninitialized) {} - BOOL isinitializing () + bool isinitializing () { if (state <= initializing) state = initializing; @@ -80,7 +79,7 @@ public: return state == initializing; } void operator = (pwdgrp_state nstate) { state = nstate; } - BOOL isuninitialized () const { return state == uninitialized; } + bool isuninitialized () const { return state == uninitialized; } bool load (const char *posix_fname, void (* add_line) (char *)) { |