summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-01-13 23:51:47 +0000
committeralfred <alfred@FreeBSD.org>2002-01-13 23:51:47 +0000
commitc4988e25d265bba2c63409a8c8b8708c13d8525e (patch)
tree26f19e4650e11a1e5fb5aeb70ba8a91561d814a8
parent1b8325cb43b9ab0323d518afb99df65da574ea5f (diff)
downloadFreeBSD-src-c4988e25d265bba2c63409a8c8b8708c13d8525e.zip
FreeBSD-src-c4988e25d265bba2c63409a8c8b8708c13d8525e.tar.gz
Add parens around macro args.
Forgotten by: dillon
-rw-r--r--sys/sys/socketvar.h8
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)
OpenPOWER on IntegriCloud