diff options
author | tmm <tmm@FreeBSD.org> | 2002-04-17 14:00:37 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2002-04-17 14:00:37 +0000 |
commit | 18d687d9dea2a4816a3851861c5d807504a9fba9 (patch) | |
tree | 95b5c0fbf7f85b3b8ab5c0b1a67d64720eae774d /sys | |
parent | 3c9d9503e20003c7db21575321e128375d730e28 (diff) | |
download | FreeBSD-src-18d687d9dea2a4816a3851861c5d807504a9fba9.zip FreeBSD-src-18d687d9dea2a4816a3851861c5d807504a9fba9.tar.gz |
Parenthesize some macro arguments.
PR: 20024
Submitted by: Tony Finch <dot@dotat.at>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/queue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h index a7b2d89..5209f4e 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -225,7 +225,7 @@ struct { \ } while (0) #define STAILQ_LAST(head, type, field) \ - (STAILQ_EMPTY(head) ? \ + (STAILQ_EMPTY((head)) ? \ NULL : \ ((struct type *) \ ((char *)((head)->stqh_last) - __offsetof(struct type, field)))) @@ -234,7 +234,7 @@ struct { \ #define STAILQ_REMOVE(head, elm, type, field) do { \ if (STAILQ_FIRST((head)) == (elm)) { \ - STAILQ_REMOVE_HEAD(head, field); \ + STAILQ_REMOVE_HEAD((head), field); \ } \ else { \ struct type *curelm = STAILQ_FIRST((head)); \ |