diff options
author | hsu <hsu@FreeBSD.org> | 2000-08-03 17:31:56 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 2000-08-03 17:31:56 +0000 |
commit | fac663d11354c0cfe9f62843a23e5ccb37ea15bb (patch) | |
tree | 740ddcf2f8bb8b53565b643c5113caecf05b4f64 /sys | |
parent | 5f2dd0da0dd463999efacbd5a5dd318bd01d52a4 (diff) | |
download | FreeBSD-src-fac663d11354c0cfe9f62843a23e5ccb37ea15bb.zip FreeBSD-src-fac663d11354c0cfe9f62843a23e5ccb37ea15bb.tar.gz |
Make check for empty list in STAILQ_LAST() more readable.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/queue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h index 6b5d320..ece552b 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -224,7 +224,7 @@ struct { \ } while (0) #define STAILQ_LAST(head, type, field) \ - (((head)->stqh_last == &(head)->stqh_first) ? \ + (STAILQ_EMPTY(head) ? \ NULL : \ strbase(type, (head)->stqh_last, field)) |