diff options
author | alfred <alfred@FreeBSD.org> | 2002-01-13 23:51:47 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-01-13 23:51:47 +0000 |
commit | c4988e25d265bba2c63409a8c8b8708c13d8525e (patch) | |
tree | 26f19e4650e11a1e5fb5aeb70ba8a91561d814a8 /sys | |
parent | 1b8325cb43b9ab0323d518afb99df65da574ea5f (diff) | |
download | FreeBSD-src-c4988e25d265bba2c63409a8c8b8708c13d8525e.zip FreeBSD-src-c4988e25d265bba2c63409a8c8b8708c13d8525e.tar.gz |
Add parens around macro args.
Forgotten by: dillon
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/socketvar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index 9368ba6..c99153f 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -253,18 +253,18 @@ struct xsocket { */ #define soref(so) do { \ - ++so->so_count; \ + ++(so)->so_count; \ } while (0) #define sorele(so) do { \ - if (so->so_count <= 0) \ + if ((so)->so_count <= 0) \ panic("sorele");\ - if (--so->so_count == 0)\ + if (--(so)->so_count == 0)\ sofree(so); \ } while (0) #define sotryfree(so) do { \ - if (so->so_count == 0) \ + if ((so)->so_count == 0) \ sofree(so); \ } while(0) |