Date: Sat, 30 Jan 2016 17:32:46 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r295077 - head/sys/netinet Message-ID: <201601301732.u0UHWktQ003319@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601301732.u0UHWktQ003319>