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 | d7e63c5f28d5aa9ff4b004a19b2089ff378a741d (patch) | |
| tree | 3b6cd6337fc83dc1c561b4f9e6c9bec95cd6ad76 /pw/pw.c | |
| parent | 5eddc03002271e86488a08ccfbbfb81b2bb6071a (diff) | |
| download | pw-darwin-d7e63c5f28d5aa9ff4b004a19b2089ff378a741d.tar.gz pw-darwin-d7e63c5f28d5aa9ff4b004a19b2089ff378a741d.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; } |
