svn commit: r295077 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Sat Jan 30 17:32:47 UTC 2016


Author: tuexen
Date: Sat Jan 30 17:32:46 2016
New Revision: 295077
URL: https://svnweb.freebsd.org/changeset/base/295077

Log:
  Add missing parentheses. This was reported by ccaughie via GitHub
  for the userland stack.
  
  MFC after: 3 days

Modified:
  head/sys/netinet/sctp_var.h

Modified: head/sys/netinet/sctp_var.h
==============================================================================
--- head/sys/netinet/sctp_var.h	Sat Jan 30 17:10:14 2016	(r295076)
+++ head/sys/netinet/sctp_var.h	Sat Jan 30 17:32:46 2016	(r295077)
@@ -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


More information about the svn-src-all mailing list