diff options
author | phk <phk@FreeBSD.org> | 2000-12-30 20:56:04 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-12-30 20:56:04 +0000 |
commit | 8211e35e910df6acf5a46354fb40e441cd2bf9e0 (patch) | |
tree | b317a17df50a2372fc00247eb734771303f7e3f8 /usr.sbin/lpr/common_source | |
parent | f13a78af6460bf80a600eab448339dac0da2db88 (diff) | |
download | FreeBSD-src-8211e35e910df6acf5a46354fb40e441cd2bf9e0.zip FreeBSD-src-8211e35e910df6acf5a46354fb40e441cd2bf9e0.tar.gz |
Use macro API to <sys/queue.h>
Submitted by: "Jason" <jsmethers@pdq.net>
Reviewed by: /sbin/md5
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r-- | usr.sbin/lpr/common_source/request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/common_source/request.c b/usr.sbin/lpr/common_source/request.c index e3e4366..79ea90b 100644 --- a/usr.sbin/lpr/common_source/request.c +++ b/usr.sbin/lpr/common_source/request.c @@ -68,11 +68,11 @@ free_request(struct request *rp) free(rp->prettyname); if (rp->authinfo) free(rp->authinfo); - while ((ru = rp->users.tqh_first) != 0) { + while ((ru = TAILQ_FIRST(&rp->users)) != 0) { TAILQ_REMOVE(&rp->users, ru, ru_link); free(ru); } - while ((rj = rp->jobids.tqh_first) != 0) { + while ((rj = TAILQ_FIRST(&rp->jobids)) != 0) { TAILQ_REMOVE(&rp->jobids, rj, rj_link); free(rj); } |