diff options
author | ben <ben@FreeBSD.org> | 2000-12-29 18:04:54 +0000 |
---|---|---|
committer | ben <ben@FreeBSD.org> | 2000-12-29 18:04:54 +0000 |
commit | aa1051802050e4b3f8e101d6829c1b31e1e67226 (patch) | |
tree | 9e119180eea063f2ade5bbb129acceefc2a4f2bb /usr.sbin/pw/pw.c | |
parent | 829d1eb6e8edc31d7a31355b8caa9ce50fa31471 (diff) | |
download | FreeBSD-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.c')
-rw-r--r-- | usr.sbin/pw/pw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c index ca3a10a..dd23df9 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; } |