From d7e63c5f28d5aa9ff4b004a19b2089ff378a741d Mon Sep 17 00:00:00 2001 From: Ben Smithurst Date: Fri, 29 Dec 2000 18:04:54 +0000 Subject: Convert to use the macros rather than fiddling with the queue structure internals. Reviewed by: markm --- pw/pw_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pw/pw_user.c') diff --git a/pw/pw_user.c b/pw/pw_user.c index c4e66b4..26615b7 100644 --- a/pw/pw_user.c +++ b/pw/pw_user.c @@ -891,9 +891,9 @@ pw_gidpolicy(struct userconf * cnf, struct cargs * args, char *nam, gid_t prefer if ((grp = GETGRNAM(nam)) != NULL) gid = grp->gr_gid; } - a_gid = grpargs.lh_first; + a_gid = LIST_FIRST(&grpargs); while (a_gid != NULL) { - struct carg *t = a_gid->list.le_next; + struct carg *t = LIST_NEXT(a_gid, list); LIST_REMOVE(a_gid, list); a_gid = t; } -- cgit v1.2.3