diff options
author | Ben Smithurst <ben@FreeBSD.org> | 2000-12-29 18:04:54 +0000 |
---|---|---|
committer | Ben Smithurst <ben@FreeBSD.org> | 2000-12-29 18:04:54 +0000 |
commit | d0d78e1303df4ae1b9e7ca2231d9c0dd58d1a89b (patch) | |
tree | 7d4f97838cab76537f6b7b610def93cef650c913 /usr.sbin/pw | |
parent | ccf67a960f8708131a4b4f909243cbe0a186f29f (diff) | |
download | src-d0d78e1303df4ae1b9e7ca2231d9c0dd58d1a89b.tar.gz src-d0d78e1303df4ae1b9e7ca2231d9c0dd58d1a89b.zip |
Convert to use the <sys/queue.h> macros rather than fiddling with the queue
structure internals.
Reviewed by: markm
Notes
Notes:
svn path=/head/; revision=70486
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r-- | usr.sbin/pw/pw.c | 4 | ||||
-rw-r--r-- | usr.sbin/pw/pw_user.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c index ca3a10abaf0f..dd23df92e1c1 100644 --- a/usr.sbin/pw/pw.c +++ b/usr.sbin/pw/pw.c @@ -420,10 +420,10 @@ cmdhelp(int mode, int which) struct carg * getarg(struct cargs * _args, int ch) { - struct carg *c = _args->lh_first; + struct carg *c = LIST_FIRST(_args); while (c != NULL && c->ch != ch) - c = c->list.le_next; + c = LIST_NEXT(c, list); return c; } diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c index c4e66b4ec879..26615b7f9ec9 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; } |