summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw_user.c
diff options
context:
space:
mode:
authorben <ben@FreeBSD.org>2000-12-29 18:04:54 +0000
committerben <ben@FreeBSD.org>2000-12-29 18:04:54 +0000
commitaa1051802050e4b3f8e101d6829c1b31e1e67226 (patch)
tree9e119180eea063f2ade5bbb129acceefc2a4f2bb /usr.sbin/pw/pw_user.c
parent829d1eb6e8edc31d7a31355b8caa9ce50fa31471 (diff)
downloadFreeBSD-src-aa1051802050e4b3f8e101d6829c1b31e1e67226.zip
FreeBSD-src-aa1051802050e4b3f8e101d6829c1b31e1e67226.tar.gz
Convert to use the <sys/queue.h> macros rather than fiddling with the queue
structure internals. Reviewed by: markm
Diffstat (limited to 'usr.sbin/pw/pw_user.c')
-rw-r--r--usr.sbin/pw/pw_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
index c4e66b4..26615b7 100644
--- a/usr.sbin/pw/pw_user.c
+++ b/usr.sbin/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;
}
OpenPOWER on IntegriCloud