aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/grp.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-02-03 12:26:08 +0000
committerCorinna Vinschen <corinna@vinschen.de>2012-02-03 12:26:08 +0000
commit02f63d4720859f30e2d98d5c9a720bcd73a320b6 (patch)
tree57ab69f0038d4c1e94addcf980d4af7a5e3a9f91 /winsup/cygwin/grp.cc
parentab1fb5350595bcc80073b8ff8140ad09f4c01597 (diff)
downloadnewlib-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/grp.cc')
-rw-r--r--winsup/cygwin/grp.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc
index 48efdb1..306a510 100644
--- a/winsup/cygwin/grp.cc
+++ b/winsup/cygwin/grp.cc
@@ -1,7 +1,7 @@
/* grp.cc
Copyright 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007, 2008, 2009, 2011 Red Hat, Inc.
+ 2007, 2008, 2009, 2011, 2012 Red Hat, Inc.
Original stubs by Jason Molenda of Cygnus Support, crash@cygnus.com
First implementation by Gunther Ebert, gunther.ebert@ixos-leipzig.de
@@ -32,7 +32,7 @@ static char * NO_COPY null_ptr;
bool
pwdgrp::parse_group ()
{
-# define grp (*group_buf)[curr_lines]
+ __group32 &grp = (*group_buf)[curr_lines];
grp.gr_name = next_str (':');
if (!*grp.gr_name)
return false;
@@ -60,7 +60,6 @@ pwdgrp::parse_group ()
}
return true;
-# undef grp
}
/* Cygwin internal */