diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-02-03 12:26:08 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-02-03 12:26:08 +0000 |
commit | 02f63d4720859f30e2d98d5c9a720bcd73a320b6 (patch) | |
tree | 57ab69f0038d4c1e94addcf980d4af7a5e3a9f91 /winsup/cygwin/passwd.cc | |
parent | ab1fb5350595bcc80073b8ff8140ad09f4c01597 (diff) | |
download | newlib-02f63d4720859f30e2d98d5c9a720bcd73a320b6.zip newlib-02f63d4720859f30e2d98d5c9a720bcd73a320b6.tar.gz newlib-02f63d4720859f30e2d98d5c9a720bcd73a320b6.tar.bz2 |
* grp.cc (pwdgrp::parse_group): Convert grp from macro to reference.
* passwd.cc (pwdgrp::parse_passwd): Ditto for res.
Diffstat (limited to 'winsup/cygwin/passwd.cc')
-rw-r--r-- | winsup/cygwin/passwd.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc index 44343af..945ce14 100644 --- a/winsup/cygwin/passwd.cc +++ b/winsup/cygwin/passwd.cc @@ -1,6 +1,7 @@ /* passwd.cc: getpwnam () and friends - Copyright 1996, 1997, 1998, 2001, 2002, 2003, 2007, 2008, 2009 Red Hat, Inc. + Copyright 1996, 1997, 1998, 2001, 2002, 2003, 2007, 2008, 2009, + 2010, 2011 Red Hat, Inc. This file is part of Cygwin. @@ -31,7 +32,7 @@ static pwdgrp pr (passwd_buf); bool pwdgrp::parse_passwd () { -# define res (*passwd_buf)[curr_lines] + passwd &res = (*passwd_buf)[curr_lines]; res.pw_name = next_str (':'); res.pw_passwd = next_str (':'); if (!next_num (res.pw_uid)) @@ -43,7 +44,6 @@ pwdgrp::parse_passwd () res.pw_dir = next_str (':'); res.pw_shell = next_str (':'); return true; -# undef res } /* Read in /etc/passwd and save contents in the password cache. |