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 | 7ae70e56d5892cf625f9cb408f00bf044064a27a (patch) | |
tree | a7d8819c2d37c947bc553353038e7d376d969b70 /pw/pw.c | |
parent | a5d7ccb782c286e487ae0bed960b0df11a6f8f5f (diff) | |
download | pw-darwin-7ae70e56d5892cf625f9cb408f00bf044064a27a.tar.gz pw-darwin-7ae70e56d5892cf625f9cb408f00bf044064a27a.tar.zst pw-darwin-7ae70e56d5892cf625f9cb408f00bf044064a27a.zip |
Convert to use the <sys/queue.h> macros rather than fiddling with the queue
structure internals.
Reviewed by: markm
Diffstat (limited to 'pw/pw.c')
-rw-r--r-- | pw/pw.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |