From 5322a0968e67a0c22f4b7a92aa065c9c8a31070f Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Sat, 30 Jan 2016 17:32:46 +0000 Subject: [PATCH] Add missing parentheses. This was reported by ccaughie via GitHub for the userland stack. MFC after: 3 days --- sys/netinet/sctp_var.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/sctp_var.h b/sys/netinet/sctp_var.h index ae1b3eb3089..7213b97684b 100644 --- a/sys/netinet/sctp_var.h +++ b/sys/netinet/sctp_var.h @@ -86,7 +86,7 @@ extern struct pr_usrreqs sctp_usrreqs; #define sctp_sbspace_failedmsgs(sb) ((long) ((sctp_maxspace(sb) > (sb)->sb_cc) ? (sctp_maxspace(sb) - (sb)->sb_cc) : 0)) -#define sctp_sbspace_sub(a,b) ((a > b) ? (a - b) : 0) +#define sctp_sbspace_sub(a,b) (((a) > (b)) ? ((a) - (b)) : 0) /* * I tried to cache the readq entries at one point. But the reality