diff options
Diffstat (limited to 'winsup/cygwin/pwdgrp.h')
-rw-r--r-- | winsup/cygwin/pwdgrp.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h index aea340d507e..b9093d8fcbb 100644 --- a/winsup/cygwin/pwdgrp.h +++ b/winsup/cygwin/pwdgrp.h @@ -55,7 +55,7 @@ class pwdgrp i = (unsigned int) x; return res; } - bool next_num (int& i) + inline bool next_num (int& i) { unsigned long x; bool res = next_num (x); @@ -67,7 +67,7 @@ public: int curr_lines; void load (const char *); - void refresh (bool check) + inline void refresh (bool check) { if (!check && initialized) return; @@ -77,18 +77,6 @@ public: pglock->release (); } - pwdgrp (passwd *&pbuf) : - pwdgrp_buf_elem_size (sizeof (*pbuf)), passwd_buf (&pbuf) - { - read = &pwdgrp::read_passwd; - parse = &pwdgrp::parse_passwd; - new_muto (pglock); - } - pwdgrp (__group32 *&gbuf) : - pwdgrp_buf_elem_size (sizeof (*gbuf)), group_buf (&gbuf) - { - read = &pwdgrp::read_group; - parse = &pwdgrp::parse_group; - new_muto (pglock); - } + pwdgrp (passwd *&pbuf); + pwdgrp (__group32 *&gbuf); }; |